GamebeastDocs
Dashboard
Project APIConfigurations

Update configuration enum

PUT
/application/{applicationId}/v2/configuration-enums/{enumId}

Rename, describe, or replace the member list. Returns 409 when it would remove a value a configuration or live experiment still uses.

Authorization

personalAccessTokenAuth
AuthorizationBearer <token>

Personal access token (prefixed gb_pat_). Acts on behalf of its owner and can never exceed the owner's own permissions. Send it as Authorization: Bearer <token>.

In: header

Path Parameters

applicationId*number
enumId*integer
Range0 < value <= 9007199254740991

Header Parameters

environment_id*number

Gamebeast environment ID

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PUT "https://example.com/application/0/v2/configuration-enums/1" \  -H "environment_id: 0" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": 0,  "applicationId": 0,  "environmentId": 0,  "name": "string",  "description": "string",  "valueType": "string",  "members": [    {      "value": "string",      "label": "string",      "description": "string"    }  ],  "color": "string",  "icon": "string",  "configurationId": 0,  "createdAt": "string",  "updatedAt": "string"}