Create Electronic Folder
POST {{base_url}}/v1/electronica/carpetaCreate Electronic Folder
Section titled “Create Electronic Folder”This endpoint allows creating a new organization folder specifically for the Electronic Signature module.
Authorization
Section titled “Authorization”This resource is protected. You must include your access token in the request header.
| Parameter | Type | Description | Limits |
|---|---|---|---|
Authorization* | string | Access token (Bearer token). | Required |
Content-Type* | string | Specifies the request format. | application/json |
Request Parameters
Section titled “Request Parameters”Required Fields
Fields marked with an asterisk (*) are required and must be provided in the request. Other fields are optional.
Send the folder name in the body of your POST request in JSON format.
| Parameter | Type | Description | Limits |
|---|---|---|---|
nombre* | string | Identifying name for the new folder on the platform. | Required |
Implementation Examples
Section titled “Implementation Examples”curl -X POST [{{base_url}}/v1/electronica/carpeta]({{base_url}}/v1/electronica/carpeta) \ -H "Authorization: Bearer TU_TOKEN_AQUI" \ -H "Content-Type: application/json" \ -d '{ "nombre": "Carpeta Nueva Proveniente del API" }'Node.js (Fetch)
Section titled “Node.js (Fetch)”const myHeaders = new Headers();myHeaders.append("Authorization", "Bearer TU_TOKEN_AQUI");myHeaders.append("Content-Type", "application/json");
const raw = JSON.stringify({ "nombre": "Carpeta Nueva Proveniente del API"});
const requestOptions = { method: "POST", headers: myHeaders, body: raw, redirect: "follow"};
fetch("[{{base_url}}/v1/electronica/carpeta]({{base_url}}/v1/electronica/carpeta)", requestOptions) .then((response) => response.json()) .then((result) => console.log(result)) .catch((error) => console.error(error));Status Codes
Section titled “Status Codes”| Code | Status | Description |
|---|---|---|
200 |
OK | Folder created successfully. |
400 |
Bad Request | JSON structure failure. |
401 |
Unauthorized | Missing or invalid token. |
500 |
Server Error | Internal server failure. |
