Updates campaign video by id
PATCH/api/campaign/:campaign_id/video/:video_id
Updates campaign video by id
Request
Path Parameters
campaign_id uuidrequired
The id of the campaign
video_id uuidrequired
The id of the video
- application/json
Body
required
caption stringrequired
The caption of the campaign media.
Responses
- 200
- 422
- default
Video updated
- application/json
- Schema
- Example (from schema)
Schema
id uuidrequired
The unique identifier of the campaign media.
campaign_id uuidrequired
The unique identifier of the campaign.
url urlrequired
The URL of the campaign media.
status CampaignMediaStatusrequired
Possible values: [waiting_user_approval, approved, declined]
Campaign media status
caption stringrequired
The caption of the campaign media.
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"campaign_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"url": "string",
"status": "waiting_user_approval",
"caption": "string"
}
Campaign not found / or video not found / caption is not valid
Unexpected error
- application/json
- Schema
- Example (from schema)
Schema
code int32required
The error code
message stringrequired
A human-readable error message
{
"code": 0,
"message": "string"
}
Loading...