Skip to main content

๐Ÿ”„ Update a Creative

Updates an existing creative by ID.

๐Ÿ“ค Request Example

curl -X PATCH https://betaapi.audiohook.com/v2/companies/:companyUUID/creatives/9999 \
  -H "Authorization: Bearer ${API_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "request_headers": [
      { "name": "X-Request-Header", "value": "Header value" }
    ],
    "body": {
      "creative_name": "Updated Creative",
      "advertiser_id": "1234-abcd-qwer-xcvb",
      "status": true,
      "tags": [...],
      "start_flight_date": "2022-12-01",
      "end_flight_date": "2023-01-01",
      "campaigns": [123,124,125],
      "events": [...],
      "companion_ad": {
        "click_through_url": "https://snarkyspizza.com/...",
        "display_asset_filename": "eat-at-snarkys.png"
      }
    }
  }'

โœ… Response Example

{
  "Creative": 9999,
  "s3_displayad": { ... }
}

๐ŸŒ HTTP Request

PATCH /v2/companies/:companyUUID/creatives/:creativeId

๐Ÿงพ Body Parameters

ParameterRequiredTypeDescription
creative_nameโŒstringNew creative name.
statusโŒbooleanActive or inactive status.
start_flight_dateโŒstringStart date (Y-M-D).
end_flight_dateโŒstringEnd date (Y-M-D).
eventsโŒarrayPixel events to attach.
tagsโŒarrayCategorization tags.
companion_adโŒobjectDisplay ad object.
campaignsโŒarrayAssociated campaign IDs.
advertiser_idโŒstringUUID of the advertiser.