Update an embed
Updates embed management metadata or the default video without changing the public ID.
Updates embed management metadata or the default video without changing the public ID.
Authorization
BearerAuth AuthorizationBearer <token>
Pass the raw API key as a Bearer token (Authorization: Bearer <key>). Publishable keys start with mvi_pub_ (playback-scoped). Other prefixes denote private/admin keys for general REST routes. GET /v1/embeds/{embedId}/playback accepts publishable keys only.
In: header
Path Parameters
embedId*string
Embed UUID.
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://api.moviie.ai/v1/embeds/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{
"embedId": "8971aebf-fca4-4062-b2a4-87771d70de31",
"name": "string",
"status": "active",
"defaultVideo": {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"title": "string",
"durationMs": 0,
"thumbnailUrl": "string"
},
"embedCode": "string",
"nativeSnippet": "string",
"stats30d": {
"views": 0,
"plays": 0,
"playRate": 0
},
"placements": [
{
"url": "string",
"domain": "string",
"plays30d": 0,
"lastSeenAt": "string"
}
],
"rules": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "string",
"type": "geo",
"status": "active",
"priority": 0,
"condition": {
"property1": null,
"property2": null
},
"targetVideoId": "9eed6b8d-4736-43e1-ba81-f2293af90e78",
"variants": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"label": "string",
"targetVideoId": "9eed6b8d-4736-43e1-ba81-f2293af90e78",
"weightPercent": 0,
"status": "active"
}
],
"createdAt": "string",
"updatedAt": "string"
}
],
"createdAt": "string",
"updatedAt": "string",
"lastSwappedAt": "string"
}{
"error": "Resource not found",
"code": "NOT_FOUND"
}{
"error": "Resource not found",
"code": "NOT_FOUND"
}{
"error": "Resource not found",
"code": "NOT_FOUND"
}{
"error": "Resource not found",
"code": "NOT_FOUND"
}