POST
/v2/mgmt/theme/import

Import a theme to a project utilizing a management key.

This endpoint is used to import a theme from a project. The request body for this endpoint can be received from the export theme endpoint.

See Also

Endpoint Authentication

Use authorization bearer header with the following format:

Authorization: Bearer \<ProjectId:ManagementKey\>

Try it

/v2/mgmt/theme/import

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

< Project ID >:< Management Key > as bearer

In: header

Request Body

themeobject

Used by managementservice snapshots - make sure not to break compatibility

Status codeDescription
200OK
curl -X POST "https://api.descope.com/v2/mgmt/theme/import" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <ProjectId:ManagementKey>" \
  -d '{
  "theme": {
    "styles": {},
    "componentsVersion": "string",
    "references": {
      "connectors": {
        "property1": "string",
        "property2": "string"
      },
      "oauth": [
        "string"
      ],
      "roles": [
        "string"
      ],
      "userAttributes": [
        "string"
      ],
      "tenantAttributes": [
        "string"
      ]
    }
  }
}'
Was this helpful?