Skip to main content
POST
https://public.plai.io
/
meta
/
edit_campaign
Update Campaign Budget
curl --request POST \
  --url https://public.plai.io/meta/edit_campaign \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "userId": "<string>",
  "campaignId": "<string>",
  "editLevel": "<string>",
  "amount": 123
}
'
{
  "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
The unique identifier of the campaign
editLevel
string
default:"BUDGET"
The level of campaign property you want to edit. Currently supports BUDGET to update the campaign’s daily budget.
Default editLevel is BUDGET.
amount
number
required
The new daily budget amount for the campaign. Required when editLevel is set to BUDGET. Must be a positive number representing the budget in your account’s currency.

Response

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