Update an embed rule
Updates rule status, priority, condition, or target video.
Updates rule status, priority, condition, or target video.
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
uuidruleId*string
Rule 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/rules/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{
"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"
}{
"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"
}