Create a new campaign video with the provided information
POST/api/campaign/:id/video
Create a new campaign video with the provided information
Request
Path Parameters
id uuidrequired
The id of the campaign
- application/json
Body
required
url urlrequired
The URL of the campaign image/video.
caption stringrequired
The caption of the campaign image/video.
Responses
- 200
- 422
- default
Campaign image
- 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 with the same URL is already added
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...