---
title: Process an Update Media Affinity Intent
framework: SiriKit Cloud Media
role: symbol
role_heading: Web Service Endpoint
platforms: [sirikit cloud media 1.0.2+]
path: sirikitcloudmedia/updatemediaaffinity
---

# 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

Accept-Language: The client’s current user interface language. Respond with localized content for this language, if available. Request-Timeout: 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: 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: The number of previous requests from the client. The client omits this header on the first attempt. x-applecloudextension-session-id: 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

200 OK: The request succeeds.

## HTTP Body

An array of requests to process intents.

## Topics

### Processing an Update Media Affinity Intent

- [UpdateMediaAffinityIntent](sirikitcloudmedia/updatemediaaffinityintent.md)
- [UpdateMediaAffinityIntentHandlingInvocation](sirikitcloudmedia/updatemediaaffinityintenthandlinginvocation.md)
- [UpdateMediaAffinityIntentHandlingInvocationResponse](sirikitcloudmedia/updatemediaaffinityintenthandlinginvocationresponse.md)

### Identifying the Intended Media Items

- [UpdateMediaAffinityIntentHandlingResolveMediaItemsInvocationResponse](sirikitcloudmedia/updatemediaaffinityintenthandlingresolvemediaitemsinvocationresponse.md)
- [UpdateMediaAffinityMediaItemResolutionResult](sirikitcloudmedia/updatemediaaffinitymediaitemresolutionresult.md)
- [UpdateMediaAffinityMediaItemUnsupportedReason](sirikitcloudmedia/updatemediaaffinitymediaitemunsupportedreason.md)

### Discerning Like or Dislike

- [MediaAffinityType](sirikitcloudmedia/mediaaffinitytype.md)
- [UpdateMediaAffinityIntentHandlingResolveAffinityTypeInvocationResponse](sirikitcloudmedia/updatemediaaffinityintenthandlingresolveaffinitytypeinvocationresponse.md)
- [MediaAffinityTypeResolutionResult](sirikitcloudmedia/mediaaffinitytyperesolutionresult.md)

### Handling an Update Media Affinity Intent

- [UpdateMediaAffinityIntentHandlingHandleInvocationResponse](sirikitcloudmedia/updatemediaaffinityintenthandlinghandleinvocationresponse.md)
- [UpdateMediaAffinityIntentResponse](sirikitcloudmedia/updatemediaaffinityintentresponse.md)
- [UpdateMediaAffinityIntentResponseCode](sirikitcloudmedia/updatemediaaffinityintentresponsecode.md)

## See Also

### Playback Events

- [QueueActivityReportEvent](sirikitcloudmedia/queueactivityreportevent.md)
- [Report Playback Progress and Activity](sirikitcloudmedia/updateactivity.md)
- [UpdateActivityRequest](sirikitcloudmedia/updateactivityrequest.md)
- [UpdateActivityResponse](sirikitcloudmedia/updateactivityresponse.md)
