Skip to main content
POST
Publish a destination version

Authorizations

Authorization
string
header
required

Sign in with the existing Occtoo Studio identity and selected organization.

Path Parameters

destinationId
string
required

Id of the destination (e.g. catalogue).

version
integer<int32>
required

Version number of the destination (e.g. 1).

Response

Accepted

One version of a destination's API, with its access and language settings.

version
required

The version number, starting at 1. Part of the URL of the published API.

id
string<uuid>
required

The identifier access tokens for a protected version are issued for.

state
enum<string>
required

Where the version is in its life: New until first published, Published when live. See ApiVersionState.

Available options:
New,
PreviewPublishStarted,
Preview,
PublishStarted,
Published,
DeleteStarted,
Deleted,
Stopped,
PublishFailed,
Updating,
Operational,
Restarting
revision
required

Grows each time the published content of the version changes.

authentication
enum<string>
required

Whether callers of the published API need an access token. See AuthenticationOption.

Available options:
Protected,
AllowAnonymous
allowedOrigins
string[]
required

Origins browsers may call the published API from. * allows any.

languages
object[]
required

The languages the published API serves.

defaultLanguage
string
required

The language used when a caller sends none.

description
null | string
required

Free text describing this version.

stopReason
string[]
required

Why the version is stopped. Empty unless state is Stopped.

etag
required

Version of this resource to send in If-Match.

createdAt
string<date-time>
required

When the version was created.

updatedAt
string<date-time>
required

When the version last changed.