Associate users to resource and permission

Prev Next
Post
/api/v1/users/{userId}/permissiondetails
Security
HTTP
Type bearer
Path parameters
userId
stringRequired

The ID of the user

Body parameters

The details for the user, resource and permission association.

Expand All
object
permissionDetails
Array of object
object
id
string
permission
string
type
string
Responses
200

OK

Expand All
object
authorization
boolean
data
object
permissions
Array of object
object
permission
object
id
string
name
string
resource
string
type
string
error_code
integer
error_message
string
error_status
boolean
Examplefalse
400

Bad Request

Expand All
object
authorization
boolean
Exampletrue
data
object
message
string
error_code
integer | null
error_message
string | null
error_status
boolean
401

Unauthorized

object
error_code
integer
error_message
string
error_status
boolean
404

Not Found

Expand All
object
authorization
boolean
Exampletrue
data
object
message
string
error_code
integer | null
error_message
string | null
error_status
boolean
422

Unprocessable Entity

Expand All
object
authorization
boolean
Exampletrue
data
object
message
string
error_code
integer | null
error_message
string | null
error_status
boolean
500

Internal Server Error

object
authorization
boolean
data
Array of string
Example[]
string
error_code
integer | null
error_message
string | null
error_status
boolean