EntityUser

Update entity user

POST
Update entity user

Path parameters

entityIdstringRequired
userIdstringRequired

Request

This endpoint expects an object.
foreignId
stringOptional
The ID used to identify this user in your system.
email
stringOptional
name
stringOptional
roles
list of stringsOptional
List of roles. A role can be any string. For example: "payer", "approver", "viewer"

Response

This endpoint returns an object
id
string
roles
list of strings
createdAt
datetime
updatedAt
datetime
foreignId
stringOptional
The ID used to identify this user in your system.
email
stringOptional
name
stringOptional
POST
1curl -X POST https://api.mercoa.com/entity/:entityId/user/:userId \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{}'
200
Successful
1{
2 "id": "string",
3 "roles": [
4 "string"
5 ],
6 "createdAt": "2023-01-01T00:00:00Z",
7 "updatedAt": "2023-01-01T00:00:00Z",
8 "foreignId": "string",
9 "email": "string",
10 "name": "string"
11}