Update Folder
Update Folder
Section titled “Update Folder”This endpoint allows updating the metadata of an existing folder.
Where {token} corresponds to the unique identifier of the folder to update.
Headers
Section titled “Headers”To authorize access to the API, you must include the authentication token in the Authorization header using the Bearer scheme. Additionally, the Content-Type header must specify that the request body (if any) is sent in JSON format.
AuthorizationContent-TypeFields marked with an asterisk (*) are required and must be provided in the request. Other fields are optional.
Request Body
Section titled “Request Body”The request body contains the necessary parameters to perform the operation. Fields marked with * are required; the rest are optional depending on each integration’s needs.
namedescriptionparent_tokenparent_tokenMinimum request example
Section titled “Minimum request example”{ "name": "Contrato Horizonte Sur" // "description": "Acuerdo para el desarrollo de la plataforma de gestión de datos", // "parent_token": "9b71f7a2-13c4-4e1b-9a6f-824f9a8c57d4" // "parent_token": null}Successful Response
Section titled “Successful Response”{ "external_id": "b81f2a39-45cb-4f7f-9132-62c4b29af231", "token": "0a9d3c52-83e2-49b0-b6cb-61de52f7ac19", "name": "Contrato Río Claro", "description": "Acuerdo para la provisión y mantenimiento de equipos de telecomunicaciones", "document_count": 2, "signed_documents_count": 1, "in_progress_documents_count": 1, "not_started_documents_count": 0, "created_at": "2024-11-12T10:27:14.000000Z", "updated_at": "2024-12-05T15:48:03.000000Z", "deleted": false, "children": [], "parent": null}Returned Fields
Section titled “Returned Fields”The service response returns the complete object of the updated folder, including its internal identifier, edited metadata, and the current status of associated documents. The fields included in the response are described below.
external_idtokennamedescriptiondocument_countsigned_documents_countin_progress_documents_countnot_started_documents_countcreated_atupdated_atdeletedchildrenparentPossible Errors
Section titled “Possible Errors”| Code | Description |
|---|---|
| 400 | Invalid request (incorrect or missing parameters). |
| 401 | Unauthorized (invalid or missing token). |
| 404 | Folder not found (invalid token). |
| 500 | Unexpected internal error. |
