Flags
Get All Activated Flags
Return the list of activated flags. Available for any authenticated user logged into SD Elements.
GET /api/v2/flags/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
HTTP/1.1 200 OK
Content-Type: application/json
{
"results": [
{
"name": "FLAG_NAME_1"
},
{
"name": "FLAG_NAME_2"
}
]
}
Activate a Flag
Flag names MUST contain only uppercase letters, underscores or numbers. Available only for SD Elements users having permission Organization > Manage Features.
Fields | Required | Description |
---|---|---|
name | Yes | The name of the flag. |
POST /api/v2/flags/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
{
"name": "FLAG_NAME_1"
}
HTTP/1.1 201 CREATED
Content-Type: application/json
{
"name": "FLAG_NAME_1"
}
Deactivate a flag
Available only for SD Elements users having permission Organization > Manage Features.
DELETE /api/v2/flags/{flag_name}/
URL Parameters
Parameter | Description |
---|---|
flag_name | The name of the flag |
Payload
Empty.
DELETE /api/v2/flags/FLAG_NAME_1/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
HTTP/1.1 204 NO CONTENT