Update platform permission
Updates a permission by ID. It can be used to grant permissions to all the resources in a Frontier instance.
Path Parameters
Request Body required
The name of the permission. It should be unique across a Frontier instance and can contain only alphanumeric characters.
The namespace of the permission. The namespace should be in service/resource format.
Example:compute/guardian
The metadata object for permissions that can hold key value pairs.
The title can contain any UTF-8 character, used to provide a human-readable name for the permissions. Can also be left empty.
Permission path key is composed of three parts, 'service.resource.verb'. Where 'service.resource' works as a namespace for the 'verb'. Namespace name cannot be app
as it's reserved for core permissions.
- 200
- 400
- 401
- 403
- 404
- 500
- default
A successful response.
Schema
permission object
The time the permission was created.
The time the permission was last updated.
Permission path key is composed of three parts, 'service.resource.verb'. Where 'service.resource' works as a namespace for the 'verb'.
{
"permission": {
"id": "string",
"name": "string",
"title": "string",
"created_at": "2023-06-07T05:39:56.961Z",
"updated_at": "2023-06-07T05:39:56.961Z",
"namespace": "string",
"metadata": {},
"key": "compute.instance.get"
}
}
Bad Request - The request was malformed or contained invalid parameters.
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Unauthorized - Authentication is required
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Forbidden - User does not have permission to access the resource
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Not Found - The requested resource was not found
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Internal Server Error. Returned when theres is something wrong with Frontier server.
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}