Skip to main content
PATCH
/
connect
/
v1
/
operators
/
{operatorId}
/
links
/
{linkId}
Update a link
curl --request PATCH \
  --url https://api.voyant.travel/connect/v1/operators/{operatorId}/links/{linkId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "id": "<string>",
  "ownerOperatorId": "<string>",
  "capabilities": [
    {
      "id": "<string>",
      "linkId": "<string>",
      "capability": "<string>",
      "enabled": true,
      "config": {}
    }
  ],
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "partnerOrganizationId": "<string>"
}

Authorizations

Authorization
string
header
required

Provide either a static platform API key or an OAuth2 access token (from /connect/v1/oauth/token) as Authorization: Bearer <token>. Scopes are connect:* (e.g. connect:bookings:write).

Path Parameters

operatorId
string
required

Operator id.

Body

application/json
status
enum<string>
Available options:
active,
paused,
revoked

Response

200 - application/json

A link.

id
string
required
ownerOperatorId
string
required
direction
enum<string>
required
Available options:
inbound,
outbound,
bidirectional
mode
enum<string>
required
Available options:
manual,
automatic
status
enum<string>
required
Available options:
active,
paused,
revoked
capabilities
object[]
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
partnerOrganizationId
string | null