Skip to Content
Experience revisions

Capture an immutable revision of the draft you own

POST
/experiences/{experience_id}/revisions

Authorization

cookie__Secure-avatarstudio.session_token<token>

An authenticated Studio session. Each operation enforces its resource and role permissions.

Path Parameters

experience_idrequiredstring
Match^exp_[1-9]\d{0,9}$

Header Parameters

if-matchrequiredstring

One strong ETag from the latest read of this resource or publication collection. Weak validators, wildcard and tag lists are not supported.

Match^(?:W\/)?"[\x21\x23-\x7e]*"$
Lengthlength <= 128

Request Body

application/json
  1. body
Capture an immutable revision of the draft you own
curl -X POST 'https://example.com/v1/experiences/string/revisions' \
  -H 'if-match: string' \
  -H 'Content-Type: application/json' \
  -d '{}'
{
  "id": "string",
  "object": "experience.revision",
  "experience_id": "string",
  "source_revision": 0,
  "document": {
    "schemaVersion": 1,
    "title": "string",
    "summary": "",
    "domain": "sales",
    "domainPackId": "core.ru.v1",
    "locale": "ru-RU",
    "instructions": "string",
    "variables": [
      {
        "name": "string",
        "value": "string"
      }
    ],
    "welcomeMessage": {
      "enabled": true,
      "allowInterruptions": true
    },
    "callEnding": {
      "enabled": false,
      "conditions": "",
      "finalResponse": "Поблагодари пользователя за разговор и попрощайся.",
      "deleteRoom": false,
      "endpointUrl": "",
      "headers": [],
      "summary": {
        "enabled": false,
        "instructions": "",
        "providerId": "gemini",
        "modelId": "string"
      }
    },
    "character": {
      "displayName": "string",
      "role": "",
      "background": "",
      "personality": [],
      "speakingStyle": "",
      "greeting": "",
      "values": [
        "string"
      ],
      "stance": "string",
      "avatarId": "string"
    },
    "scenario": {
      "title": "",
      "participantRole": "",
      "context": "",
      "goals": [],
      "stages": [],
      "guardrails": [],
      "completionCriteria": []
    },
    "knowledge": {
      "facts": [],
      "provider": "none"
    },
    "tools": {
      "version": 2,
      "source": "string",
      "functionDeclarations": [],
      "httpTools": [],
      "mcpServers": []
    },
    "runtime": {
      "voiceId": "",
      "voiceLanguage": "ru-RU",
      "environmentPresetId": ""
    },
    "provenance": {
      "type": "blank"
    },
    "extensions": {
      "property1": "string",
      "property2": "string"
    }
  },
  "created_at": -9007199254740991
}

Response Body

OK

application/json
  1. response
idrequiredstring
Match^rev_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
objectrequiredunknown
experience_idrequiredstring
Match^exp_[1-9]\d{0,9}$
source_revisionrequiredinteger
Range0 <= value <= 9007199254740990
documentrequired
created_atrequiredinteger
Range-9007199254740991 <= value <= 9007199254740991