3. Internal User (Emlpoyee)
Working with Employeers you have the following features:
List the of users per counterparty
Create a user
An internal user created via the API or Internal web UI must have fields about the counterparty. This is important for creating roles.
Internal user contains a user ID or login (email) or a unique name.
Internal user is linked to a single counterparty.
Internal user has a set of assigned roles.
create dcm employees
Counterparty GUID
optional default ''
CounterpartyGUID application guid from wallet
GUID if guid is zero, generate new random guid if guid exist return error
optional default false
Login must be unique
optional default == login
optional default without roles
POST /api/v1/counterparty/{counterparty_guid}/employees HTTP/1.1
Host: dev-dcm-api.armenotech.dev
Content-Type: application/json
Accept: */*
Content-Length: 128
{
"branch_name": "text",
"counterparty_guid": "text",
"guid": "text",
"is_disabled": true,
"login": "text",
"name": "text",
"roles": [
"text"
]
}
{
"guid": "text"
}
Update a user
update dcm employees
Counterparty GUID
Employee GUID
PUT /api/v1/counterparty/{counterparty_guid}/employees/{employee_guid} HTTP/1.1
Host: dev-dcm-api.armenotech.dev
Content-Type: application/json
Accept: */*
Content-Length: 87
{
"branch_name": "text",
"is_disabled": true,
"login": "text",
"name": "text",
"roles": [
"text"
]
}
{
"guid": "text"
}
List the of users per counterparty
Show a user
To show a single user you should do the previuos request and to find the user you need with an appropriate guid.
Last updated