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
400
Bad Request
application/problem+json
403
Forbidden
application/problem+json
404
Not Found
application/problem+json
429
Too Many Requests
application/problem+json
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?