For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update custom audience

Renames a custom audience and/or replaces its rules. Omit a field to leave it unchanged; rules, when sent, is the audience's complete new rule list: it is never merged, so any stored rule you leave out is removed. It is validated exactly like POST /custom-audiences, and an invalid rule rejects the whole request. Launched tests keep the rules they launched with; drafts use the new rules when they launch. A duplicate name returns 400.

patch
Authorizations
AuthorizationstringRequired

All requests require Authorization: Bearer sl_live_<your_api_key>. Generate a key from the Shoplift admin's API Keys settings page.

Path parameters
idstring · uuidRequired
Body
namestring · nullableOptional
Responses
200

OK

application/json
idstring · uuidRequired
namestringRequired
patch/api/public/v1/custom-audiences/{id}
PATCH /api/public/v1/custom-audiences/{id} HTTP/1.1
Host: app.shoplift.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 96

{
  "name": null,
  "rules": [
    {
      "dimension": "text",
      "operator": "text",
      "values": [
        "text"
      ],
      "selector": null
    }
  ]
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "rules": [
    {
      "dimension": "text",
      "operator": "text",
      "values": [
        "text"
      ],
      "selector": null
    }
  ]
}

Last updated

Was this helpful?