# Sessions

The programme: talks, panels and their speakers, times and rooms.

Base URL: https://api.audiobly.com

### PUT /v1/events/{event_id}/sessions/{session_id}/speaker-mappings

Assign session speaker

Assign (or reassign) a diarized label to a roster speaker for the session's latest
transcript. Upserts the mapping so re-assigning just swaps the speaker.

Scope: content_edit

Parameters:

- `event_id` (path, string (uuid), required)
- `session_id` (path, string (uuid), required)

Body (JSON):

- `diarized_label` (string, required): The speaker label the transcript uses, such as Speaker 0.
- `speaker_id` (string (uuid)): The id of the speaker.
- `label` (string): The label as shown in the transcript.

Responses:

- 200: Successful Response
- 422: The request did not validate.
- 401: The key is missing, unknown, revoked or expired.
- 403: The key lacks the scope this call needs, or the organisation is not on Enterprise.
- 429: Over the request rate. Wait for Retry-After seconds.
