Skip to main content
PATCH
Change a destination endpoint

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 endpoint.

Path Parameters

destinationId
string
required

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

version
integer<int32>
required

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

endpoint
string
required

Id of the endpoint (e.g. products).

Body

application/json

Changes to an endpoint. Omitted or null fields stay as they are.

name
null | string

Display name, 3 to 50 characters. Fixed once the version is published.

description
null | string

Free text, up to 200 characters. Fixed once the version is published.

content
null | object

Replaces everything the endpoint returns. On a published version it waits as pendingContent for the next publish.

Response

OK

An endpoint of a destination version: one route of the published API and what it returns.

id
string
required

The endpoint's safe name. Part of the URL of the published API.

name
string
required

Display name.

description
null | string
required

Free text shown with the endpoint.

content
object
required

What the published endpoint returns.

pendingContent
null | object
required

Changed content that waits for the next publish. Null when nothing waits.

etag
required

Version of the endpoint to send in If-Match.