curl --request POST \
--url https://{FUSION HOST}/api/roles \
--header 'Content-Type: application/json' \
--data '{
"id": "<string>",
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"desc": "<string>",
"permissions": [
{
"methods": [
"GET"
],
"path": "<string>",
"params": {}
}
],
"uiPermissions": [
"<string>"
]
}'
{
"id": "<string>",
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"desc": "<string>",
"permissions": [
{
"methods": [
"GET"
],
"path": "<string>",
"params": {}
}
],
"uiPermissions": [
"<string>"
]
}
Create a new role in the system
curl --request POST \
--url https://{FUSION HOST}/api/roles \
--header 'Content-Type: application/json' \
--data '{
"id": "<string>",
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"desc": "<string>",
"permissions": [
{
"methods": [
"GET"
],
"path": "<string>",
"params": {}
}
],
"uiPermissions": [
"<string>"
]
}'
{
"id": "<string>",
"name": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"desc": "<string>",
"permissions": [
{
"methods": [
"GET"
],
"path": "<string>",
"params": {}
}
],
"uiPermissions": [
"<string>"
]
}
Created
The response is of type object
.
Was this page helpful?