Variations
Manage variations
Return the list of the variations of the variation group
The ID of the account
The ID of the environment
The ID of the campaign
The ID of the variation group
Index of the page
0
Number of items per page
10
Success
Not Found
GET /v1/accounts/{account_id}/account_environments/{account_environment_id}/campaigns/{campaign_id}/variation_groups/{variation_group_id}/variations HTTP/1.1
Host: api.flagship.io
Authorization: YOUR_API_KEY
Accept: */*
{
"current_item_count": 1,
"current_page": 0,
"total_count": 1,
"items_per_page": 10,
"last_page": 1,
"items": [
{
"id": "text",
"name": "text",
"reference": true,
"allocation": 1,
"modifications": {
"type": "text",
"value": {}
}
}
]
}
Create a variation
The ID of the account
The ID of the environment
The ID of the campaign
The ID of the variation group
ID of the variation
Name of the variation
Wether the variation is the reference or not
Allocation of the variation (0-100)
Created
Validation errors
POST /v1/accounts/{account_id}/account_environments/{account_environment_id}/campaigns/{campaign_id}/variation_groups/{variation_group_id}/variations HTTP/1.1
Host: api.flagship.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 90
{
"name": "text",
"reference": true,
"allocation": 1,
"modifications": {
"type": "text",
"value": {}
}
}
{
"id": "text",
"name": "text",
"reference": true,
"allocation": 1,
"modifications": {
"type": "text",
"value": {}
}
}
Return one variation by its id
The ID of the account
The ID of the environment
The ID of the campaign
The ID of the variation group
The ID of the variation
Success
Not Found
GET /v1/accounts/{account_id}/account_environments/{account_environment_id}/campaigns/{campaign_id}/variation_groups/{variation_group_id}/variations/{variation_id} HTTP/1.1
Host: api.flagship.io
Authorization: YOUR_API_KEY
Accept: */*
{
"id": "text",
"name": "text",
"reference": true,
"allocation": 1,
"modifications": {
"type": "text",
"value": {}
}
}
Delete a variation by its id.
The ID of the account
The ID of the environment
The ID of the campaign
The ID of the variation group
The ID of the variation
Deleted
No content
Not Found
DELETE /v1/accounts/{account_id}/account_environments/{account_environment_id}/campaigns/{campaign_id}/variation_groups/{variation_group_id}/variations/{variation_id} HTTP/1.1
Host: api.flagship.io
Authorization: YOUR_API_KEY
Accept: */*
No content
Update variation informations - You can set only the properies you want to update in the request body.
The ID of the account
The ID of the environment
The ID of the campaign
The ID of the variation group
The ID of the variation
ID of the variation
Name of the variation
Wether the variation is the reference or not
Allocation of the variation (0-100)
Updated
Validation errors
PATCH /v1/accounts/{account_id}/account_environments/{account_environment_id}/campaigns/{campaign_id}/variation_groups/{variation_group_id}/variations/{variation_id} HTTP/1.1
Host: api.flagship.io
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 90
{
"name": "text",
"reference": true,
"allocation": 1,
"modifications": {
"type": "text",
"value": {}
}
}
{
"id": "text",
"name": "text",
"reference": true,
"allocation": 1,
"modifications": {
"type": "text",
"value": {}
}
}
Was this helpful?