Campaigns

Manage campaigns

Get campaigns of the account environment

get

Return the list of the campaigns of the account environment

Authorizations
AuthorizationstringRequired

Prefix the token with 'Bearer ' to indicate it is a bearer token

Path parameters
account_idstringRequired

The ID of the account

account_environment_idstringRequired

The ID of the environment

Query parameters
_pageintegerOptional

Index of the page

Example: 0
_max_per_pageintegerOptional

Number of items per page

Example: 10
Responses
200

Success

application/json
Responseall of
get
/accounts/{account_id}/account_environments/{account_environment_id}/campaigns

Create a campaign

post

Create a campaign

Authorizations
AuthorizationstringRequired

Prefix the token with 'Bearer ' to indicate it is a bearer token

Path parameters
account_idstringRequired

The ID of the account

account_environment_idstringRequired

The ID of the environment

Body
idstringRead-onlyOptional

ID of the campaign

project_idstringRequired

ID of the campaign's project

namestringRequired

Name of the campaign

slugstringOptional

Slug of the campaign

descriptionstringRequired

Description of the campaign

typestring · enumRequired

Type of the campaign

Possible values:
statusstring · enumRead-onlyOptional

Status of the campaign

Possible values:
created_atstring · date-timeRead-onlyOptional

Creation date of campaign

updated_atstring · date-timeRead-onlyOptional

Update date of the campaign

primary_goalall ofOptional
Responses
post
/accounts/{account_id}/account_environments/{account_environment_id}/campaigns

Get one campaign

get

Return one campaign by its id

Authorizations
AuthorizationstringRequired

Prefix the token with 'Bearer ' to indicate it is a bearer token

Path parameters
account_idstringRequired

The ID of the account

account_environment_idstringRequired

The ID of the environment

campaign_idstringRequired

The ID of the campaign

Responses
200

Success

application/json
get
/accounts/{account_id}/account_environments/{account_environment_id}/campaigns/{campaign_id}

Delete a campaign

delete

Delete a campaign by its id.

Authorizations
AuthorizationstringRequired

Prefix the token with 'Bearer ' to indicate it is a bearer token

Path parameters
account_idstringRequired

The ID of the account

account_environment_idstringRequired

The ID of the environment

campaign_idstringRequired

The ID of the campaign

Responses
delete
/accounts/{account_id}/account_environments/{account_environment_id}/campaigns/{campaign_id}

No content

Update a campaign

patch

Update campaign informations - You can set only the properies you want to update in the request body.

Authorizations
AuthorizationstringRequired

Prefix the token with 'Bearer ' to indicate it is a bearer token

Path parameters
account_idstringRequired

The ID of the account

account_environment_idstringRequired

The ID of the environment

campaign_idstringRequired

The ID of the campaign

Body
idstringRead-onlyOptional

ID of the campaign

project_idstringRequired

ID of the campaign's project

namestringRequired

Name of the campaign

slugstringOptional

Slug of the campaign

descriptionstringRequired

Description of the campaign

typestring · enumRequired

Type of the campaign

Possible values:
statusstring · enumRead-onlyOptional

Status of the campaign

Possible values:
created_atstring · date-timeRead-onlyOptional

Creation date of campaign

updated_atstring · date-timeRead-onlyOptional

Update date of the campaign

primary_goalall ofOptional
Responses
200

Updated

application/json
patch
/accounts/{account_id}/account_environments/{account_environment_id}/campaigns/{campaign_id}

Toggle a campaign state

patch

Switch the state of the campaign to active/inactive.

Authorizations
AuthorizationstringRequired

Prefix the token with 'Bearer ' to indicate it is a bearer token

Path parameters
account_idstringRequired

The ID of the account

account_environment_idstringRequired

The ID of the environment

campaign_idstringRequired

The ID of the campaign

Body
statestring · enumRequired

State of the toggler

Possible values:
Responses
200

Updated

No content

patch
/accounts/{account_id}/account_environments/{account_environment_id}/campaigns/{campaign_id}/toggle

No content

Last updated

Was this helpful?