API to retrieve all the roles for the tenant
Request Succeded
Bad request
Unauthorized request
{- "count": 0,
- "roles": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "role_type": 0
}
]
}
API to Create New role for the tenant
Request Succeded
Bad request
Unauthorized request
{- "name": "string",
- "description": "string"
}
{- "id": "string",
- "name": "string",
- "description": "string",
- "role_type": 0
}
API to update role details
Request Succeded
Bad request
Unauthorized request
{- "name": "string",
- "description": "string"
}
{- "id": "string",
- "name": "string",
- "description": "string",
- "role_type": 0
}
API to delete the role for the tenant
Deleted succesfully
Bad request
Unauthorized request
{- "status": 0,
- "code": 0,
- "error": "string",
- "errors": [
- "string"
], - "message": "string"
}
API to update scopes of an roles for the tenant
Request Succeded
Bad request
Unauthorized request
{- "scope_ids": [
- "string"
], - "scope_names": [
- "read:device"
]
}
{- "count": 0,
- "scopes": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "scope_type": 0
}
]
}
API to retrieve scopes of an roles for the tenant
Request Succeded
Bad request
Unauthorized request
{- "count": 0,
- "scopes": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "scope_type": 0
}
]
}