Delete a bulk of costUnits

Delete a bulk of costUnits by external Id from a specific company.

PUT costUnits/delete/external/bulk/:companyExternalId

Request details

The put request will contain all the required information to delete a bulk of costUnits by the companyExternalId

Request properties

Property Type Description Optional
costUnitId [] String [] An array of external identifiers of costUnits No

Example bulk delete costUnits request

[
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000000",
"00000000-0000-0000-0000-000000000000",
"{costUnit-external-id}"
]

Response

Upon successful delete a bulk of costUnits in Basecone system a 200 http status code will be returned.

If something goes wrong and error message with failure details will be given together with a suitable http error status code.

Possible error responses

Status code Error code Details
400 json_parse_error Unable to parse JSON.
400 invalid_request_payload Company Id and one or more costUnits Id are empty
403 Forbidden User does not have access to the company
404 Not Found The request resource is not found.