# Delegate hub

Hub sessions and counts, companies, delegate accounts, briefings, actions and connections.

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

### POST /v1/delegate-accounts/{account_id}/notes

Create note

Keep a typed note for the delegate: `moment` (a point in a session, with
`timestamp_seconds`), `quote` (text and/or `quote_id`), `question` (text required) or
`upvote` (of a session, quote or moment; the same upvote again returns the existing one
with 200). These are many per session (up to 2,000 per event). Kind `note` writes the one
free-text note for the event or session, exactly as PUT /notes (empty text deletes it,
204). `timestamp_seconds` needs `session_id`. The activity row (`note.added`) has the kind
and length, never the text. 404 if the account, event or session is not in your
organisation; 422 INVALID_KIND / INVALID_NOTE / TEXT_REQUIRED / NOTE_TOO_LONG /
TOO_MANY_NOTES. Requires the organisation's API key.

Scope: prep_manage

Parameters:

- `account_id` (path, string (uuid), required)

Body (JSON):

- `event_id` (string (uuid), required): The id of the event this relates to.
- `session_id` (string (uuid)): Null for the event as a whole
- `kind` (one of note, moment, quote, question, upvote): `note` writes the one free-text note for the event or session (as PUT /notes); the other kinds add a new item each time
- `text` (string): The text.
- `timestamp_seconds` (integer): Seconds into the session recording (needs `session_id`)
- `quote_id` (string): The quote this refers to

Responses:

- 201: Successful Response
- 200: An upvote that already existed (returned unchanged)
- 204: kind `note` with empty text: the note was deleted
- 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.
