Update a permission group
PATCH/auth/permission_groups/:id
Updates the specified permission group with the parameters passed. Any parameters not included in the request will be left unchanged.
Request
Path Parameters
id stringrequired
The id
of the Permission Group
- application/json
Body
required
description stringrequired
Human readable identifier.
actions string[]required
resource_groups string[]required
Responses
200: Successful response
- application/json
401: Authentication error
- application/json
403: Authorization error
- application/json
404: Resource not found
- application/json
422: Invalid parameters supplied in request. See HTTP response body for details.
- application/json
Request samples
curl -L -X PATCH 'https://api.telnyx.com/auth/permission_groups/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"description": "Text Jenny",
"actions": [
"string"
],
"resource_groups": [
"string"
]
}'
Response samples
{
"data": {
"id": "1490ecab-d4a1-4f22-abe7-60f5500a060f",
"description": "Text Jenny",
"actions": [
"string"
],
"resource_groups": [
"string"
],
"record_type": "permission_group",
"created_at": "2018-02-08T18:49:22.998023Z",
"updated_at": "2018-02-08T18:49:22.998023Z"
}
}
{
"errors": [
{
"code": "10001",
"title": "error title",
"detail": "additional detail about the error",
"pointer": "/pointer/to/field"
}
]
}
{
"errors": [
{
"code": "10001",
"title": "error title",
"detail": "additional detail about the error",
"pointer": "/pointer/to/field"
}
]
}
{
"errors": [
{
"code": "10001",
"title": "error title",
"detail": "additional detail about the error",
"pointer": "/pointer/to/field"
}
]
}
{
"errors": [
{
"code": "10001",
"title": "error title",
"detail": "additional detail about the error",
"pointer": "/pointer/to/field"
}
]
}