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/updateMediaAffinityHeader Parameters
| Name | Type | Description |
|---|---|---|
Accept-Language Required | string | The client’s current user interface language. Respond with localized content for this language, if available. |
Request-Timeout Required | uint32 | 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 Required | string | 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 Optional | uint32 | The number of previous requests from the client. The client omits this header on the first attempt. |
x-applecloudextension-session-id Required | string | 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
| Status | Reason | Type | Description |
|---|---|---|---|
| 200 | OK Content-Type: application/json | [UpdateMediaAffinityIntentHandlingInvocationResponse] | The request succeeds. |
HTTP Body
An array of requests to process intents.
Topics
Processing an Update Media Affinity Intent
UpdateMediaAffinityIntentUpdateMediaAffinityIntentHandlingInvocationUpdateMediaAffinityIntentHandlingInvocationResponse
Identifying the Intended Media Items
UpdateMediaAffinityIntentHandlingResolveMediaItemsInvocationResponseUpdateMediaAffinityMediaItemResolutionResultUpdateMediaAffinityMediaItemUnsupportedReason
Discerning Like or Dislike
MediaAffinityTypeUpdateMediaAffinityIntentHandlingResolveAffinityTypeInvocationResponseMediaAffinityTypeResolutionResult