Deletes a bulk of periods by external id
Deletes a bulk of periods by the external Ids.
PUT periods/external/bulk/:companyExternalId
Request details
The put request will contain all the required information to delete a bulk of periods by the companyExternalId
Request properties
Property | Type | Description | Optional |
---|---|---|---|
PeriodsExternalIds | String [] | An array of external identifiers of periods. | No |
Example bulk delete periods request
[ "00000000-0000-0000-0000-000000000000", "00000000-0000-0000-0000-000000000000", "00000000-0000-0000-0000-000000000000", "{periods-external-id}" ]
Response
Upon successful delete of the bulk of periods in the Basecone system, a 204 http status code will be returned. If something goes wrong, an 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 | Period id cannot be empty. |
403 | unauthorized | Not allowed to Company. |
404 | notfound | Period not found. |