POST
/
meta
/
update_campaign_status
Update Campaign Status
curl --request POST \
  --url https://public.plai.io/meta/update_campaign_status \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "userId": "<string>",
  "campaignId": "<string>",
  "status": "<string>"
}'
{
  "success": true,
  "results": {
    "success": true,
    "error": "<string>"
  }
}

Request Body

userId
string
required
User ID, If not already created, make a user on create user page first. If already created, retrieve the user ID from get profile page.
campaignId
string
required
Campaign ID. You can get campaign id from get campaign insights page. If not created, create a campaign on create campaign page.
status
string
required
Status to update the campaign to, values: PAUSED or ACTIVE or DELETE

Response

success
boolean
Indicates that the HTTP response was successful (status code 200 OK).
results
object