Contents

Process an Update Media Affinity Intent

Record the user’s preference for a specific media item or a broader category of media.

URL

POST https://cloudextension-testservice.local/api/intent/updateMediaAffinity

Header Parameters

NameTypeDescription
Accept-Language Requiredstring

The client’s current user interface language. Respond with localized content for this language, if available.

Request-Timeout Requireduint32

An approximate deadline, in seconds, for processing this real-time user request. The Session object provides the exact deadline for handling an intent.

User-Agent Requiredstring

The extension protocol running on the client. This is an RFC 7231-compliant string that contains the product name AppleCloudExtension and the SiriKit Extension library version running on the client.

x-applecloudextension-retry-count Optionaluint32

The number of previous requests from the client. The client omits this header on the first attempt.

x-applecloudextension-session-id Requiredstring

A constant session identifier to include in each request and response. Respond to each request with the session ID the client sends in that request.

Response Codes

StatusReasonTypeDescription
200OK
Content-Type: application/json
[UpdateMediaAffinityIntentHandlingInvocationResponse]

The request succeeds.

HTTP Body

An array of requests to process intents.

Topics

Processing an Update Media Affinity Intent

Identifying the Intended Media Items

Discerning Like or Dislike

Handling an Update Media Affinity Intent

See Also

Playback Events