POST
/
api
/
{organization_id}
/
usage-group-sets
/
{usage_group_set_id}
/
usage-groups
Create a usage group
curl --request POST \
  --url https://api.select.dev/api/{organization_id}/usage-group-sets/{usage_group_set_id}/usage-groups \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "filter_expression": {
    "operator": "and",
    "filters": [
      {}
    ]
  },
  "filter_expression_json": "<string>",
  "name": "<string>",
  "budget": 123,
  "usage_group_set_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "order": 123
}'
{
  "filter_expression": {
    "operator": "and",
    "filters": [
      {}
    ]
  },
  "filter_expression_json": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "usage_group_set_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "budget": 123,
  "order": 123,
  "usage_group_set_name": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

usage_group_set_id
string
required

The ID of the usage group set

organization_id
string
required

Body

application/json

The usage group configuration to create. Must include either a filter_expression object or filter_expression_json string.

Response

200
application/json

Successful Response

The response is of type object.