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.
If hosted is set to true then fileUrl is required. Else file is required. If adding a file, maximum allowed is 25 MB
POST https://services.leadconnectorhq.com/medias/upload-file
Autorizacion
Bearer token generado desde el portal Leadway. Ver Autenticacion.
Version
string
default:"2021-07-28"
required
Version de la API.
Body
Respuestas
200 - Successful response
fileId
string
default:"file.pdf"
required
ID of the uploaded file
Google Cloud Storage URL of the uploaded file
{
"fileId": "file.pdf",
"url": "https://storage.googleapis.com/bucket-name/path/to/file.pdf"
}
Ejemplo
curl -X POST 'https://services.leadconnectorhq.com/medias/upload-file' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Version: 2021-07-28' \
-H 'Content-Type: application/json' \
-d '{
"file": "string",
"hosted": true,
"fileUrl": "string",
"name": "string",
"parentId": "string"
}'