Roles
Roles Data Model
Name
Data
Description
Example Roles
{
"_id":
{
"$oid":"64392c4f862be321e3598f65"
},
"_createdAt":
{
"$date":
{
"$numberLong":"1681468495815"
}
},
"_createdBy":"[email protected]",
"_modifiedAt":
{
"$date":
{
"$numberLong":"1687865984008"
}
},
"_modifiedBy":"[email protected]",
"org":"64392b37862be321e3598f58",
"name":"Provider",
"label":"Providers215",
"description":"",
"status":"active",
"policies":["64392c1d862be321e3598f63"]
}Sample request:
POST api/v1/CreateRole
{
"name": "Patient",
"policies": ["policyId"],
}
Authorizations
AuthorizationstringRequired
Standard Authorization header using the Bearer scheme ("bearer {token}")
Body
namestringRequiredPattern:
^[a-zA-Z0-9_]*$policiesstring[] · nullableOptional
Responses
200
Success
No content
401
Unauthorized
403
Forbidden
post
/api/v1/CreateRoleNo content
Last updated