Skip to main content
POST
/
api
/
agent
/
add-file-direct
Agregar Archivo Directo al Agente
curl --request POST \
  --url https://api.plazbot.com/api/agent/add-file-direct \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --form file='@example-file' \
  --form 'agentId=<string>' \
  --form 'workspaceId=<string>'
{
  "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

Body

multipart/form-data
file
file
required

Archivo a subir

agentId
string
required

ID del agente

workspaceId
string
required

Identificador del workspace

Response

Archivo subido y agregado exitosamente al agente

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