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/ent_a0f6ea94-0761-4a5e-a416-3c453cb7eced/user/user_ec3aafc8-ea86-408a-a6c1-545497badbbb \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "foreignId": "MY-DB-ID-12345",
6 "email": "john.doe@acme.com",
7 "name": "John Doe",
8 "roles": [
9 "admin",
10 "approver"
11 ]
12}'
200Successful
1{
2 "id": "user_ec3aafc8-ea86-408a-a6c1-545497badbbb",
3 "roles": [
4 "admin",
5 "approver"
6 ],
7 "createdAt": "2024-01-01T00:00:00Z",
8 "updatedAt": "2024-01-01T00:00:00Z",
9 "foreignId": "MY-DB-ID-12345",
10 "email": "john.doe@acme.com",
11 "name": "John Doe"
12}