Skip to main content

Update a company

Request example
curl -X PATCH https://betaapi.audiohook.com/v2/companies/:companyUUID \
  -H "Authorization: Bearer ${API_TOKEN}" \
  -H "Content-Type: application/json" \
  -H "ui-referer: ADVERTISER" \
  -d '{
    "request_headers": [
      { "name": "X-Request-Header", "value": "Header value" }
    ],
    "body": {
      "name": "test-advertiser"
    }
  }'
Response sample
200 OK
{
  "Message": "Advertiser 999999 has been updated",
  "Advertiser": {
    "id": 999999,
    "uuid": "test-advertiser-uuid"
  }
}
Updates an existing company

HTTP Request

PATCH /v2/companies/:companyUUID

Body Parameters

ParameterRequiredData TypeDescription
namefalsestringThe name of the advertiser
urlfalsestringThe URL that is associated with the advertiser
statusfalsebooleanThe status of the advertiser. Defaults to true
owner_idfalseintThe user ID under which to put the advertiser
reporting_requestedfalsebooleanWhether the advertiser requested Glean reporting
onboardedfalsebooleanWhether the advertiser has finished onboarding