PT-7175 — organization processes (release with mobile 3.16; not on production yet). Process ids become ObjectIds and the fields holding them get new names: processOnProjectId/processOnProjectIds— a process on the project (_idinGET /project/{projectId}/process);processId/processIds— the organization's process (_idinGET /client/{clientId}/process). Read a process's type, name, code and colours fromGET /project/{projectId}/process, matched byprocessOnProjectId— never from the id. Issue writes keep accepting the oldprocessfield andPROCESS_*values for about a month; every other write takes only the new names and ids.
permissions.clients[].projects[].processes → processOnProjectIds (in and out): _ids of processes on that project (were PROCESS_* types); another value → 422. The body is documented by the UserCreateInDto model.curl --location 'https://app.hustro.com/api/v2/user' \
--header 'hustro-client: m2m' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "{{userEmail}}",
"label": "{{userLabel}}",
"permissions": {
"clients": [
{
"_id": "",
"projects": [
{
"_id": "",
"sites": [
"6808b336be3cfeb2453418d3"
],
"processOnProjectIds": [
"6750b2e4c3d4e5f6a7b8c9e1",
"6750b2e4c3d4e5f6a7b8c9e2"
],
"role": "standard"
}
]
}
]
}
}'[
{
"_id": "string",
"email": "string",
"personalData": [
{
"clientId": "string",
"label": "string",
"phone": "string"
}
],
"createdAt": "string",
"createdBy": "string",
"modifiedAt": "string",
"modifiedBy": "string",
"label": "string",
"role": "string",
"processOnProjectIds": [
"64ed771d95a1e3d565839d18"
],
"sites": [
"string"
]
}
]