Update a role
Path parameters
idstringRequired
The role id.
Header parameters
Brand-URLstringRequiredExample:
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
Auth-KeystringRequiredExample:
This is used to authenticate the request. If the request is not authenticated, the server will return a 401 Unauthorized response.
YOUR_AUTH_KEY
Body
This class is used when creating or updating a Role.
codestring · min: 1RequiredExample:
The code of the Role.
EXAMPLE
namestring · min: 1RequiredExample:
The name of the Role.
Example
descriptionstring | nullableOptionalExample:
The description of the Role.
Description
tagsstring | nullableOptionalExample:
The tags of the Role.
#Example
Responses
200
The request was successful.
application/json
401
The user is not authorized to access the requested resource. The request is missing the required Auth-Key header.
application/json
403
The user's access was denied.
application/json
404
The Role was not found in the system.
application/json
429
The user has exceeded the rate limit.
application/json
put
PUT /api/v1/roles/{id} HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Auth-Key: text
Content-Type: application/json
Accept: */*
Content-Length: 161
{
"code": "DEVELOPER",
"name": "Developer",
"description": "Role for software developers with access to development tools and project resources.",
"tags": "#it #system"
}
{
"success": true,
"statusCode": 200,
"message": "The request was successful.",
"data": {
"id": "sApKpllz4sAplsmzha",
"parentBrandId": null,
"guid": "1f13ced5-8b75-4f30-86c8-9317a51f6a88",
"code": "EXAMPLE",
"name": "Example",
"description": "Description",
"tags": "#Example",
"type": "Custom",
"permissions": [
"Resource.Action"
]
},
"errors": []
}
Last updated
Was this helpful?