Skip to main content

Create a resource group

POST 
/auth/resource_groups

Creates a resource group.

Request

Body

required

    description stringrequired

    Human readable identifier.

Responses

200: Successful response

401: Authentication error

403: Authorization error

422: Invalid parameters supplied in request. See HTTP response body for details.

Request samples


curl -L 'https://api.telnyx.com/auth/resource_groups' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"description": "Tommy'\''s Numbers"
}'

Response samples


{
"data": {
"id": "e6746f7c-a375-4c68-937f-bbfc3858d500",
"description": "Tommy's Numbers",
"default": "Tommy's Numbers",
"record_type": "resource_group",
"created_at": "2018-02-08T18:49:22.998023Z",
"updated_at": "2018-02-08T18:49:22.998023Z"
}
}