Delete a bulk of Cost Centers By External Ids

Delete a bulk of cost centers by a informed collection of external Ids from an informed company.

PUT costcenters/delete/external/bulk/:companyExternalId

Request details

The put request will contain all the required information to delete a bulk of cost centers

Request properties

Property Type Description Optional
costCentersExternalIds string [] An array of external cost centers identifiers No

Example bulk delete cost centers request

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

Response

Upon successful delete a bulk of cost centers 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 invalid_request_payload One or more costCenterExternalId are empty
403 Forbidden User does not have access to the company
404 Not Found The request resource is not found.