Get Started
Studio API
- Introduction
- Streaming
- CMS
- Events
- Creative Works
- Entities
- Content Types
- Annotations
- GETGet annotation
- GETList annotations
- POSTCreate annotation
- PATCHUpdate annotation
- DELDelete annotation
- Annotation Types
- Annotation Sets
- Action Types
- Action Secrets
- GET
- OTT
- Monetization
- IAM
- Integration
- Analytics
Content Delivery API
Deep dive
Annotations
Update annotation
UpdateAnnotation
Updates an existing annotation.
PATCH
/
annotations
/
annotations
/
v1
/
{annotation_id}
Copy
curl --request PATCH \
--url https://api.mottostreaming.com/annotations/annotations/v1/{annotation_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"annotation_id": "<string>",
"annotation": {
"project_id": "<string>",
"type_id": "<string>",
"video_id": "<string>",
"offset": "<string>",
"visibility": "VISIBILITY_UNSPECIFIED",
"event_id": "<string>",
"creative_work_id": "<string>",
"entity_ids": [
"<string>"
],
"action_overrides": {},
"start_offset": "<string>",
"end_offset": "<string>",
"source_type": "SOURCE_TYPE_UNSPECIFIED",
"source_id": "<string>",
"confidence": 123
},
"update_mask": "<string>"
}'
Copy
{
"annotation": {
"id": "<string>",
"project_id": "<string>",
"type_id": "<string>",
"video_id": "<string>",
"offset": "<string>",
"visibility": "VISIBILITY_UNSPECIFIED",
"event_id": "<string>",
"creative_work_id": "<string>",
"entity_ids": [
"<string>"
],
"action_overrides": {},
"start_offset": "<string>",
"end_offset": "<string>",
"source_type": "SOURCE_TYPE_UNSPECIFIED",
"source_id": "<string>",
"confidence": 123
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/json
Response
200
application/json
OK
The response is of type object
.
Copy
curl --request PATCH \
--url https://api.mottostreaming.com/annotations/annotations/v1/{annotation_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"annotation_id": "<string>",
"annotation": {
"project_id": "<string>",
"type_id": "<string>",
"video_id": "<string>",
"offset": "<string>",
"visibility": "VISIBILITY_UNSPECIFIED",
"event_id": "<string>",
"creative_work_id": "<string>",
"entity_ids": [
"<string>"
],
"action_overrides": {},
"start_offset": "<string>",
"end_offset": "<string>",
"source_type": "SOURCE_TYPE_UNSPECIFIED",
"source_id": "<string>",
"confidence": 123
},
"update_mask": "<string>"
}'
Copy
{
"annotation": {
"id": "<string>",
"project_id": "<string>",
"type_id": "<string>",
"video_id": "<string>",
"offset": "<string>",
"visibility": "VISIBILITY_UNSPECIFIED",
"event_id": "<string>",
"creative_work_id": "<string>",
"entity_ids": [
"<string>"
],
"action_overrides": {},
"start_offset": "<string>",
"end_offset": "<string>",
"source_type": "SOURCE_TYPE_UNSPECIFIED",
"source_id": "<string>",
"confidence": 123
}
}
Assistant
Responses are generated using AI and may contain mistakes.