Delete Repair Cost
DELETE/api/repairs/:repair/costs/:cost
Deletes a cost line. A consumed part is first returned to stock at its consumed cost; a posted line's journal is reversed. Posted lines need the "Repairs: manage costs" permission and are refused with 422 inside a locked accounting period.
Required scope:
repairs:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Authentication: Bearer token with the repairs:write scope.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
Response Headers
Content-Type
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden
Response Headers
Content-Type
Not Found
Response Headers
Content-Type
Unprocessable Entity
Response Headers
Content-Type
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.