Skip to main content
POST
/
api
/
opportunity
/
{opportunityId}
/
files
Agregar Archivos a Oportunidad
curl --request POST \
  --url https://api.plazbot.com/api/opportunity/{opportunityId}/files \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --form files='@example-file'
{
  "success": true,
  "code": 123,
  "errorCode": "<string>",
  "message": "<string>",
  "data": {}
}

Authorizations

Authorization
string
header
required

Token de autenticacion Bearer. Obtenga el token usando el endpoint /api/user/login

Headers

x-workspace-id
string
required

Identificador del workspace

Path Parameters

opportunityId
string
required

ID de la oportunidad

Body

multipart/form-data
files
file
required

Archivo a subir

Response

Archivos agregados exitosamente a la oportunidad

success
boolean
required

Indica si la operacion fue exitosa

code
integer
required

Codigo HTTP de la respuesta

errorCode
string | null
required

Codigo de error, null si no hay error

message
string
required

Mensaje descriptivo del resultado

data
object
required

Datos de la respuesta