Problems
Every error response of the API is a problem details object (RFC 9457).
A program tells problems apart by their type. Each type is the address of the problem's page on this site.
| Problem | HTTP status | Description |
|---|---|---|
| Invalid request | 400 | A parameter or the body is missing or malformed, or a value breaks a rule. |
| Unauthenticated | 401 | The request carries no access token, or a malformed one, or its token is unknown, expired, revoked, or belongs to another shop. |
| Insufficient scope | 403 | The scope of the access token does not allow this operation: a read token sent a request that writes. |
| Not found | 404 | The host serves no API, no operation has this path, or the entity does not exist. |
| Method not allowed | 405 | The path does not take this method. The Allow header lists the methods it takes. |
| Already exists | 409 | Another entity already has this value in a field that must be unique. |
| Entity in use | 409 | The entity cannot be deleted: other entities depend on it. |
| Concurrent modification | 409 | The entity changed while the request was running. Read it again, then retry. |
| Content too large | 413 | The request body is larger than 64 KiB, the most the API accepts. |
| Rate limited | 429 | The shop has used up its request budget for the current window. Retry after the number of seconds in the Retry-After header. |
| Internal error | 500 | The server failed. Quote the request_id when you contact support. |
| Service unavailable | 503 | A service the API depends on did not respond. Retry later. |
Delete a material DELETE
Deletes a material. The path names the material by its id, or by its code with `by=code`. Past orders keep their record of the material. If the material is the default material of a design kind, new designs of that kind start with the first material that the shop offers again.
Invalid request
A parameter or the body is missing or malformed, or a value breaks a rule.