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
{
"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
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Unauthorized - Authentication is required
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Forbidden - User does not have permission to access the resource
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Not Found - The requested resource was not found
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Internal Server Error. Returned when theres is something wrong with Frontier server.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
PUT /v1beta1/permissions/:id
Authorization
name: Basic type: httpdescription: use Client ID as username and Client Secret as passwordin: headerscheme: basic
Request
Request
curl -L -X PUT 'http://127.0.0.1:7400/v1beta1/permissions/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"namespace": "string",
"metadata": {},
"title": "string",
"key": "compute.instance.get"
}'
curl -L -X PUT 'http://127.0.0.1:7400/v1beta1/permissions/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"namespace": "string",
"metadata": {},
"title": "string",
"key": "compute.instance.get"
}'
curl -L -X PUT 'http://127.0.0.1:7400/v1beta1/permissions/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"namespace": "string",
"metadata": {},
"title": "string",
"key": "compute.instance.get"
}'
curl -L -X PUT 'http://127.0.0.1:7400/v1beta1/permissions/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"namespace": "string",
"metadata": {},
"title": "string",
"key": "compute.instance.get"
}'
curl -L -X PUT 'http://127.0.0.1:7400/v1beta1/permissions/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"namespace": "string",
"metadata": {},
"title": "string",
"key": "compute.instance.get"
}'
curl -L -X PUT 'http://127.0.0.1:7400/v1beta1/permissions/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"namespace": "string",
"metadata": {},
"title": "string",
"key": "compute.instance.get"
}'
curl -L -X PUT 'http://127.0.0.1:7400/v1beta1/permissions/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"namespace": "string",
"metadata": {},
"title": "string",
"key": "compute.instance.get"
}'
curl -L -X PUT 'http://127.0.0.1:7400/v1beta1/permissions/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"namespace": "string",
"metadata": {},
"title": "string",
"key": "compute.instance.get"
}'
curl -L -X PUT 'http://127.0.0.1:7400/v1beta1/permissions/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"name": "string",
"namespace": "string",
"metadata": {},
"title": "string",
"key": "compute.instance.get"
}'