Skip to content

Update Folder

PUT {{base_url}}/v1/folders/{{token}}

This endpoint allows updating the metadata of an existing folder.

Where {{token}} corresponds to the unique identifier of the folder to update.



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.

ParameterTypeDescriptionLimits
Authorization*stringAccess token obtained during login, with the 'Bearer' prefix.Required
Content-TypestringFormat of sent data.'application/json'

Required Fields

Fields marked with an asterisk (*) are required and must be provided in the request. Other fields are optional.


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.

ParameterTypeDescriptionLimits
name*stringNew folder name.Required
descriptionstringFolder description.Optional
parent_tokenstringIf included, it would move the folder under a parent folder with that token.Optional
parent_tokenstringIf you send null, it would remove the parent relationship (making it a root folder).Optional

{
"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
}

{
"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
}

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.

NombreTypeDescription
external_idstringExternal ID assigned by the client.
tokenstringUnique internal token assigned by Firmeasy.
namestringCurrent folder name.
descriptionstringCurrent folder description.
document_countintegerTotal number of documents.
signed_documents_countintegerSigned documents.
in_progress_documents_countintegerDocuments in progress.
not_started_documents_countintegerDocuments not started.
created_atdatetimeCreation date.
updated_atdatetimeLast modification date.
deletedbooleanIndicates if it is logically deleted.
childrenarrayList of subfolders.
parentobject/nullParent folder (if it exists).

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.