Skip to Content
Publications

Select an immutable revision and replace publication policy

PUT
/publications/{publication_id}

Authorization

cookie__Secure-avatarstudio.session_token<token>

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

Path Parameters

publication_idrequiredstring

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
document_revision_idrequiredstring
Match^rev_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
policyrequired
Select an immutable revision and replace publication policy
curl -X PUT 'https://example.com/v1/publications/string' \
  -H 'if-match: string' \
  -H 'Content-Type: application/json' \
  -d '{
  "document_revision_id": "string",
  "policy": {
    "allowed_origins": [
      "string"
    ],
    "branding": {
      "title": "string"
    },
    "quotas": {
      "max_concurrent_sessions": 0,
      "max_sessions_per_day": 0
    },
    "renderer_id": "linux"
  }
}'
{
  "id": "string",
  "object": "publication",
  "experience_id": "string",
  "document_revision_id": "string",
  "revision": 1,
  "status": "active",
  "slug": "string",
  "policy": {
    "allowed_origins": [
      "string"
    ],
    "branding": {
      "title": "string",
      "accent_color": "string",
      "logo_url": "string"
    },
    "quotas": {
      "max_concurrent_sessions": 0,
      "max_sessions_per_day": 0
    },
    "renderer_id": "string"
  },
  "created_at": -9007199254740991,
  "updated_at": -9007199254740991
}

Response Body

OK

application/json
  1. response
idrequiredstring
objectrequiredunknown
experience_idrequiredstring
Match^exp_[1-9]\d{0,9}$
document_revision_idrequired|null
revisionrequiredinteger
Range1 <= value <= 9007199254740990
statusrequiredstring
Value in"active""revoked"
slugrequiredstring
policyrequired
created_atrequiredinteger
Range-9007199254740991 <= value <= 9007199254740991
updated_atrequiredinteger
Range-9007199254740991 <= value <= 9007199254740991