Skip to main content

Documentation Index

Fetch the complete documentation index at: https://developers.leadwaycrm.com/llms.txt

Use this file to discover all available pages before exploring further.

Updates a single file or folder by ID
POST https://services.leadconnectorhq.com/medias/{id}

Autorizacion

Authorization
string
required
Bearer token generado desde el portal Leadway. Ver Autenticacion.
Version
string
default:"2021-07-28"
required
Version de la API.

Path parameters

id
string
default:"686f9817f0d3165be9fbcef6"
required
Unique identifier of the file or folder to update

Body

name
string
default:"Updated File Name.pdf"
required
New name for the file or folder
altType
string
default:"account"
required
Type of entity that owns the file or folder Posibles valores: ‘account’
altId
string
default:"sx6wyHhbFdRXh302LLNR"
required
Account identifier that owns the file or folder

Respuestas

{
  "updated": true,
  "traceId": "33a641a2-c4a6-4123-aa82-c5b84f1a14ee"
}

Ejemplo

curl -X POST 'https://services.leadconnectorhq.com/medias/YOUR_id' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Version: 2021-07-28' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "Updated File Name.pdf",
  "altType": "account",
  "altId": "sx6wyHhbFdRXh302LLNR"
}'