type CUSTOM, baseType PROCESS_QA (fields, dictionaries and workflow like QA); no project changes. textColor is computed by the backend. Access: client admin of this organization or superadmin; a project admin gets 403. 422 error.errorType: PROCESS_CODE_ALREADY_USED (code taken among the organization's not deleted processes, without case), PROCESS_LABEL_ALREADY_USED (name taken within the same language, trimmed, without case); an invalid body has express-validator errors in error.details. 422 messages are in English — show your own translated text by error.errorType.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.
curl --location 'https://app.hustro.com/api/v2/client//process' \
--header 'hustro-client: ' \
--header 'hustro-client-version: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"labelTranslations": [
{
"localeCode": "pl",
"value": "Odbiory"
},
{
"localeCode": "en",
"value": "Handovers"
}
],
"code": "odb",
"color": "#1e88e5",
"icon": "house"
}'{
"_id": "6750a1f2c3d4e5f6a7b8c9d0",
"type": "CUSTOM",
"baseType": "PROCESS_QA",
"isCustom": true,
"label": "Odbiory",
"code": "ODB",
"color": "#1E88E5",
"textColor": "#FFFFFF",
"icon": "house",
"labelTranslations": [
{
"localeCode": "pl",
"value": "Odbiory"
},
{
"localeCode": "en",
"value": "Handovers"
}
]
}