Annexes (anexos) are the physical or digital documents submitted alongside an appeal — originals, certified copies, monetary values, and other supporting materials. The two endpoints on this page let client applications load the list of recognized annex types and then associate one or more of those types (with quantities and optional monetary values) to an existing appeal record. Both endpoints require authentication.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/BladimirGS/judicial-backend/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/apelaciones/anexos/catalogos
Returns the full catalog of available annex types. Fetch this list before showing the annex-addition form so the UI can render the correct labels for eachidAnexo.
Authentication
Request Parameters
This endpoint takes no query or path parameters.Response — 200 OK
"success""Catálogos de anexos obtenidos"Array of annex type entries. Each item has:
id(number) — use this asidAnexowhen posting annexes.descripcion(string) — human-readable label (e.g."Copias certificadas","Originales").
The catalog may contain an entry for “Otro” (Other). When an “Otro” type is available, its
id in the catalog is used as a positive integer in the catalog list. However, when posting annexes, passing a negative idAnexo signals a free-text “other” document — in that case otroAnexo becomes required. See the POST /api/apelaciones/anexos section below for details.Error Responses
| HTTP Status | Reason | Description |
|---|---|---|
401 Unauthorized | Missing or invalid JWT | Authentication failed. |
Example Request
Example Response
POST /api/apelaciones/anexos
Attaches one or more annex items to an existing appeal. Each item specifies the annex type, quantity, whether it carries a monetary value, and optionally a free-text description for custom (“other”) document types. The endpoint validates thatidApelacion and the anexos array are both present and non-empty before persisting.
Authentication
Request Body
The internal database ID of the appeal to attach annexes to. This is the
data.id value returned when the appeal was created — not the folio string.Array of annex items to add. Must contain at least one item.
Response — 201 Created
"success""Anexos agregados correctamente"Array of the newly created annex records, one entry per item in the submitted
anexos array.Internal ID of the created annex record.
ID of the appeal the annex was attached to.
Catalog ID used (or the negative integer for “other” types).
Quantity of the document submitted.
Whether this annex represents a monetary value.
The monetary amount, if applicable.
Error Responses
| HTTP Status | Reason | Description |
|---|---|---|
400 Bad Request | Missing idApelacion | The request body does not include idApelacion. |
400 Bad Request | Empty or missing anexos array | anexos is absent, not an array, or has zero items. |
400 Bad Request | Validation failure | One or more AnexoItemDTO fields failed class-validator rules (e.g. idAnexo is not an integer, otroAnexo missing when required). |
401 Unauthorized | Missing or invalid JWT | Authentication failed. |