Get Started
Studio API
- Introduction
- Streaming
- CMS
- Events
- Creative Works
- Entities
- Content Types
- Annotations
- OTT
- Monetization
- IAM
- Integration
- Analytics
Content Delivery API
Deep dive
Update creative work
UpdateCreativeWork
Updates existing creative work.
curl --request PATCH \
--url https://api.mottostreaming.com/cms/creative_works/v1/{creative_work_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"creative_work_id": "<string>",
"creative_work_update": {
"project_id": "<string>",
"type_id": "<string>",
"title": "<string>",
"description": "<string>",
"status": "CREATIVE_WORK_STATUS_UNSPECIFIED",
"release_time": "2023-11-07T05:31:56Z",
"thumbnail_asset_id": "<string>",
"poster_asset_id": "<string>",
"video_ids": [
"<string>"
],
"fields": {},
"visibility": "VISIBILITY_UNSPECIFIED",
"localized_title": {},
"localized_description": {},
"localized_thumbnail_asset_id": {},
"localized_poster_asset_id": {}
},
"update_mask": "<string>"
}'
{
"creative_work": {
"id": "<string>",
"project_id": "<string>",
"type_id": "<string>",
"title": "<string>",
"description": "<string>",
"status": "CREATIVE_WORK_STATUS_UNSPECIFIED",
"release_time": "2023-11-07T05:31:56Z",
"thumbnail_asset_id": "<string>",
"poster_asset_id": "<string>",
"video_ids": [
"<string>"
],
"fields": {},
"visibility": "VISIBILITY_UNSPECIFIED",
"create_time": "2023-11-07T05:31:56Z",
"localized_title": {},
"localized_description": {},
"localized_thumbnail_asset_id": {},
"localized_poster_asset_id": {}
}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
A creative work describes any kind of creative video content that does not have a start/end time (unlike an event).
The type id of the creative work. For example documentary
. May be set to default
when no custom fields are present.
Current status of the creative work
CREATIVE_WORK_STATUS_UNSPECIFIED
, CREATIVE_WORK_STATUS_SCHEDULED
, CREATIVE_WORK_STATUS_RELEASED
The time at which this creative work was/will be released. This does not affect the visibility of the associated video(s), but can be displayed in the UI
VISIBILITY_UNSPECIFIED
, VISIBILITY_PUBLISHED
, VISIBILITY_UNLISTED
, VISIBILITY_HIDDEN
A map of localized titles for this creative work, for end users to see. The key is the language code (ISO 639 - set 1), e.g. "en", "de", "fr", etc. If you want to localize the text for different regions of the same language, you can add the country code (ISO 3166-1 alpha-2), e.g. "en-US", "en-GB", etc.
Leaving this field empty will default to the title
field.
A map of localized descriptions for this creative work. The key is the language code (ISO 639 - set 1), e.g. "en", "de", "fr", etc. If you want to localize the text for different regions of the same language, you can add the country code (ISO 3166-1 alpha-2), e.g. "en-US", "en-GB", etc.
Leaving this field empty will default to the description
field.
A map of localized thumbnail asset IDs for this creative work. The key is the language code (ISO 639 - set 1), e.g. "en", "de", "fr", etc. If you want to localize the text for different regions of the same language, you can add the country code (ISO 3166-1 alpha-2), e.g. "en-US", "en-GB", etc.
Leaving this field empty will default to the thumbnail_asset_id
field.
A map of localized poster asset IDs for this creative work. The key is the language code (ISO 639 - set 1), e.g. "en", "de", "fr", etc. If you want to localize the text for different regions of the same language, you can add the country code (ISO 3166-1 alpha-2), e.g. "en-US", "en-GB", etc.
Leaving this field empty will default to the poster_asset_id
field.
Response
A creative work describes any kind of creative video content that does not have a start/end time (unlike an event).
System generated unique identifier for the creative work.
The type id of the creative work. For example documentary
. May be set to default
when no custom fields are present.
Current status of the creative work
CREATIVE_WORK_STATUS_UNSPECIFIED
, CREATIVE_WORK_STATUS_SCHEDULED
, CREATIVE_WORK_STATUS_RELEASED
The time at which this creative work was/will be released. This does not affect the visibility of the associated video(s), but can be displayed in the UI
VISIBILITY_UNSPECIFIED
, VISIBILITY_PUBLISHED
, VISIBILITY_UNLISTED
, VISIBILITY_HIDDEN
A map of localized titles for this creative work, for end users to see. The key is the language code (ISO 639 - set 1), e.g. "en", "de", "fr", etc. If you want to localize the text for different regions of the same language, you can add the country code (ISO 3166-1 alpha-2), e.g. "en-US", "en-GB", etc.
Leaving this field empty will default to the title
field.
A map of localized descriptions for this creative work. The key is the language code (ISO 639 - set 1), e.g. "en", "de", "fr", etc. If you want to localize the text for different regions of the same language, you can add the country code (ISO 3166-1 alpha-2), e.g. "en-US", "en-GB", etc.
Leaving this field empty will default to the description
field.
A map of localized thumbnail asset IDs for this creative work. The key is the language code (ISO 639 - set 1), e.g. "en", "de", "fr", etc. If you want to localize the text for different regions of the same language, you can add the country code (ISO 3166-1 alpha-2), e.g. "en-US", "en-GB", etc.
Leaving this field empty will default to the thumbnail_asset_id
field.
A map of localized poster asset IDs for this creative work. The key is the language code (ISO 639 - set 1), e.g. "en", "de", "fr", etc. If you want to localize the text for different regions of the same language, you can add the country code (ISO 3166-1 alpha-2), e.g. "en-US", "en-GB", etc.
Leaving this field empty will default to the poster_asset_id
field.
curl --request PATCH \
--url https://api.mottostreaming.com/cms/creative_works/v1/{creative_work_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"creative_work_id": "<string>",
"creative_work_update": {
"project_id": "<string>",
"type_id": "<string>",
"title": "<string>",
"description": "<string>",
"status": "CREATIVE_WORK_STATUS_UNSPECIFIED",
"release_time": "2023-11-07T05:31:56Z",
"thumbnail_asset_id": "<string>",
"poster_asset_id": "<string>",
"video_ids": [
"<string>"
],
"fields": {},
"visibility": "VISIBILITY_UNSPECIFIED",
"localized_title": {},
"localized_description": {},
"localized_thumbnail_asset_id": {},
"localized_poster_asset_id": {}
},
"update_mask": "<string>"
}'
{
"creative_work": {
"id": "<string>",
"project_id": "<string>",
"type_id": "<string>",
"title": "<string>",
"description": "<string>",
"status": "CREATIVE_WORK_STATUS_UNSPECIFIED",
"release_time": "2023-11-07T05:31:56Z",
"thumbnail_asset_id": "<string>",
"poster_asset_id": "<string>",
"video_ids": [
"<string>"
],
"fields": {},
"visibility": "VISIBILITY_UNSPECIFIED",
"create_time": "2023-11-07T05:31:56Z",
"localized_title": {},
"localized_description": {},
"localized_thumbnail_asset_id": {},
"localized_poster_asset_id": {}
}
}