API ReferenceAdmin Users
Assign Role
Path Parameters
id*integer
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
curl -X POST "https://example.com/api/v1/admin/users/0/roles" \ -H "Content-Type: application/json" \ -d '{ "roleId": 0 }'{
"data": {
"id": 0,
"email": "string",
"name": "string",
"status": "string",
"roles": [
{
"id": 0,
"roleId": 0,
"roleName": "string",
"appScope": 0
}
],
"lastLoginAt": "2019-08-24T14:15:22Z",
"createdAt": "2019-08-24T14:15:22Z"
},
"meta": {
"success": true,
"message": "string",
"errorCode": "RESOURCE_NOT_FOUND",
"timestamp": "2019-08-24T14:15:22Z"
},
"pagination": {
"page": 0,
"size": 0,
"totalElements": 0,
"totalPages": 0
}
}