Skip to main content
PATCH
Change a destination version

Authorizations

Authorization
string
header
required

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

Headers

If-Match
string

The latest ETag of the version.

Path Parameters

destinationId
string
required

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

version
integer<int32>
required

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

Body

application/json

Changes to a destination version. Omitted or null fields stay as they are.

languages
null | object[]

Replaces all languages the published API serves.

defaultLanguage
null | string

One of the language codes of the version.

allowedOrigins
null | string[]

Replaces the origins browsers may call the published API from. * allows any and stands alone.

description
null | string

Free text describing this version. An empty text clears it.

Response

OK

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.