Archiver une catégorie
DELETE/api/v1/categories/:id
Archive une catégorie par ID (suppression douce via l'horodatage archived_at).
La catégorie doit appartenir à un tenant accessible par l'application OAuth. Les catégories archivées sont exclues des listes actives mais restent accessibles avec include_archived=true.
Request
Responses
- 204
- 401
- 404
- 422
La catégorie a été archivée (son horodatage archived_at a été renseigné). Il s'agit d'une suppression douce, non définitive : l'enregistrement n'est pas supprimé et reste récupérable avec include_archived=true.
La requête ne comportait pas de jeton d'accès OAuth 2.0 valide.
Aucune catégorie n'existe avec l'id donné, ou elle appartient à un espace de travail auquel l'application OAuth du jeton d'accès n'est pas liée.
A record still bound to the category blocks the archive: a webhook endpoint that would stop receiving deliveries, or an import category mapping that still files invoices under it. code is dependent_records and message names which of the two blocks it; unlike a validation failure this body carries no details. Rebind or delete the dependents first.