EntityUser

Create entity user

POST
https://api.mercoa.com/entity/:entityId/user

Path parameters

entityId
string

Request

This endpoint expects an object.
foreignId
optional string

The ID used to identify this user in your system.

email
optional string
name
optional string
roles
optional list of strings

List of roles. A role can be any string. For example: "payer", "approver", "viewer"

Response

This endpoint return an object.
id
string
roles
list of strings
createdAt
datetime
updatedAt
datetime
foreignId
optional string

The ID used to identify this user in your system.

email
optional string
name
optional string
POST
/entity/:entityId/user
curl -X POST https://api.mercoa.com/entity/:entityId/user \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{}'
Response
{
"id": "string",
"roles": [
"string"
],
"createdAt": "2023-01-01T00:00:00Z",
"updatedAt": "2023-01-01T00:00:00Z",
"foreignId": "string",
"email": "string",
"name": "string"
}