Skip to Content
Omnibase

Update a role

PUT
/api/v1/tenants/roles/{role_id}

Authorization

headerX-Session-Token<token>

Kratos session JWT token. Alternative to cookie authentication for non-browser clients.

Path Parameters

role_id*string

Request Body

application/json
  1. body
permissions*array<string>|null

Response Body

OK

application/json
  1. response
created_at*string
Formatdate-time
id*string
permissions*array<string>|null
role_name*string
template_id*string
tenant_id*string
updated_at*string
Formatdate-time
user_ids*array<string>|null
Example Request
curl -X PUT 'https://api.omnibase.tech/api/v1/tenants/roles/string' \  -H 'Content-Type: application/json' \  -d '{  "permissions": [    "project:*#view",    "project:*#edit"  ]}'
Example Response
{  "created_at": "2019-08-24T14:15:22Z",  "id": "string",  "permissions": [    "string"  ],  "role_name": "string",  "template_id": "string",  "tenant_id": "string",  "updated_at": "2019-08-24T14:15:22Z",  "user_ids": [    "string"  ]}