# 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}

Update session

Update a session; only the fields sent are changed. Changing `starts_at` re-sorts the
event's sessions into programme order. 422 if `title` is set blank; 404 if the track or
location is not part of the event.

Scope: prep_manage

Parameters:

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

Body (JSON):

- `title` (string): The title shown to attendees.
- `starts_at` (string (date-time)): When it starts, as an ISO 8601 date and time.
- `ends_at` (string (date-time)): When it ends, as an ISO 8601 date and time.
- `session_type` (string): The kind of session, such as keynote, panel or workshop.
- `description` (string): A short description shown to people browsing the event.
- `position` (integer): Where this item appears in its list; lower numbers come first.
- `track_id` (string (uuid)): The track this session belongs to.
- `location_id` (string (uuid)): The room or location where this session takes place.
- `language` (string): The spoken language, as a language code such as en.
- `capacity` (integer): How many people can register for the session.

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.
