Skip to main content
POST
Link an AWS Marketplace purchase
Takes a signed-in session only. A managing key is refused with 403. See Editions for what OneCLI Cloud adds. Links an AWS Marketplace subscription to this organization with its registration token. Admins and owners, signed in. Hosted only.
Availability: OneCLI Cloud only. A self-hosted deployment does not serve this endpoint and answers 404 with error.code: "not_found".

Authorizations

Authorization
string
header
required

A managing key (oc_key_...), an older API key (oc_...), or a signed-in session.

Headers

Idempotency-Key
string

Optional. 1 to 255 visible characters. A retry with the same key, path and body returns the first answer (with Idempotent-Replayed: true) for 24 hours. The same key with another path or body is 422 idempotency_conflict.

Required string length: 1 - 255

Body

application/json
token
string
required

The registration token AWS Marketplace handed over.

Required string length: 1 - 4096

Response

Linked.

contractExpiresAt
string | null
required
entitledAgents
number
required
status
string
required

subscribed once the license is active, else pending.