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

Update campaign

Partially updates a campaign. Omit fields to leave them unchanged; pass null for objective or goal to clear them.

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
objectivestring · nullableOptional
goalstring · nullableOptional
Responses
400

Bad Request

application/problem+json
typestring · nullableOptional
titlestring · nullableOptional
statusinteger · nullableOptional
detailstring · nullableOptional
instancestring · nullableOptional
patch/api/public/v1/campaigns/{id}
PATCH /api/public/v1/campaigns/{id} HTTP/1.1
Host: app.shoplift.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 42

{
  "name": null,
  "objective": null,
  "goal": null
}
{
  "type": null,
  "title": null,
  "status": null,
  "detail": null,
  "instance": null
}

Last updated

Was this helpful?