PUT
/
contracts
/
{id}
curl --request PUT \
  --url https://v2.firstpromoter.com/api/v2/company/contracts/{id} \
  --header 'Account-ID: <account-id>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "checkbox_label": "<string>",
  "content_hosted": true,
  "content": "<string>",
  "external_link": "<string>",
  "campaign_ids": [
    123
  ],
  "default": true
}'

Authorizations

Authorization
string
header
required

Access token passed as a Bearer token in the Authorization header

Headers

Account-ID
string
required

Account identifier that specifies which account is making the request

Example:

"acc_123456"

Path Parameters

id
integer
required

Body

application/json

Response

401

Unauthorized