GamebeastDocs
Dashboard
Project APIConfigurations

Create configuration enum

POST
/application/{applicationId}/v2/configuration-enums

Create an enum: a named list of allowed string or number values. Shared by every configuration in the environment, or scoped to one with configurationId.

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

Gamebeast project ID

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 POST "https://example.com/application/0/v2/configuration-enums" \  -H "environment_id: 0" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "valueType": "string",    "members": [      {        "value": "string"      }    ]  }'
{  "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"}