Creates a New Role

Creates new role.

post

Creates new role.

Authorizations
Body
uuidstringRequiredExample: 00000000-0000-0000-0000-000000000000
namestringRequiredExample: Name
descriptionstringRequiredExample: Description
ownerstringRequiredExample: #did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001
permissionsstring ยท enumRequiredExample: ["POLICIES_POLICY_READ"]Possible values:
Responses
200
Created role.
application/json
post
POST /api/v1/permissions/roles HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 215

{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "name": "Name",
  "description": "Description",
  "owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
  "permissions": [
    "POLICIES_POLICY_READ"
  ]
}
{
  "uuid": "00000000-0000-0000-0000-000000000000",
  "name": "Name",
  "description": "Description",
  "owner": "#did:hedera:testnet:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA_0.0.0000001",
  "permissions": [
    "POLICIES_POLICY_READ"
  ]
}

Last updated