Skip to main content
PUT
/
campaigns
/
{id}
Update Campaign
curl --request PUT \
  --url https://api.kakiyo.com/v1/campaigns/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Updated Campaign Name",
  "qualificationAutomatic": 80,
  "qualificationVerification": 60,
  "variables": {
    "companyValue": "Updated value proposition",
    "painPoint": "Updated pain point",
    "benefit": "Updated benefit statement"
  }
}
'
{
  "id": "campaign_12345abcde",
  "message": "Campaign updated successfully"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

ID of the campaign to update

Body

application/json

Campaign properties to update

name
string
Required string length: 3 - 100
Example:

"Updated Campaign Name"

qualificationAutomatic
integer
Required range: 0 <= x <= 100
Example:

80

qualificationVerification
integer
Required range: 0 <= x <= 100
Example:

60

variables
object
Example:
{
"companyValue": "Updated value proposition",
"painPoint": "Updated pain point",
"benefit": "Updated benefit statement"
}

Response

Campaign updated successfully

id
string
Example:

"campaign_12345abcde"

message
string
Example:

"Campaign updated successfully"