USER

GET User

get
/api/v1/user/{userId}
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
userIdintegerRequiredExample: 1
Header parameters
tokenstringOptionalExample: abc123def456ghi789jkl012mno345pqr678stu901vwx234yz567abc890
Responses
200

Successful response

application/json
get
/api/v1/user/{userId}
200

Successful response

No content

EDIT User

put
/api/v1/user/{userId}
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
userIdintegerRequiredExample: 1
Body
objectOptionalExample: {"name":"John","surname":"Doe","email":"[email protected]","organizations":[2],"roleId":2}
Responses
200

Successful response

application/json
put
/api/v1/user/{userId}
200

Successful response

No content

POST User

post
/api/v1/user
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
objectOptionalExample: {"name":"Jane","surname":"Smith","email":"[email protected]","organizations":[2]}
Responses
200

Successful response

application/json
post
/api/v1/user
200

Successful response

No content

EDIT User Password

patch
/api/v1/user/{userId}/password-change
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
userIdintegerRequiredExample: 1
Body
objectOptionalExample: {"password_new":"newpassword123","password_old":"oldpassword123"}
Responses
200

Successful response

application/json
patch
/api/v1/user/{userId}/password-change
200

Successful response

No content

Toggle User Permission

post
/api/v1/user/{userId}/permission
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
userIdintegerRequiredExample: 1
Body
objectOptionalExample: {"permissionSlug":"example-permission-slug","name":"Example Permission"}
Responses
200

Successful response

application/json
post
/api/v1/user/{userId}/permission
200

Successful response

No content

Set Permissions

post
/api/v1/user/{userId}/permission/set
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
userIdintegerRequiredExample: 1
Body
objectOptionalExample: {"slugArray":["permission-slug-1","permission-slug-2"]}
Responses
200

Successful response

application/json
post
/api/v1/user/{userId}/permission/set
200

Successful response

No content

DELETE User

delete
/api/v1/user/{userId}/delete
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
userIdintegerRequiredExample: 1
Responses
200

Successful response

application/json
delete
/api/v1/user/{userId}/delete
200

Successful response

No content

Last updated