Files

Criar arquivos

post
Autorizações
Corpo
solution_idstringOpcional
Respostas
201

Files created successfully

application/json
post
POST /api/files/files HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 112

{
  "solution_id": "text",
  "files": [
    {
      "content_type": "APPLICATION_OCTET_STREAM",
      "external_url": "text",
      "name": "text"
    }
  ]
}
{
  "files": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "text",
      "organization_id": "123e4567-e89b-12d3-a456-426614174000",
      "solution_id": "text",
      "url": "text",
      "status": "PENDING",
      "content_type": "APPLICATION_OCTET_STREAM",
      "content_length": 1,
      "created_by": "text",
      "created_at": "2025-09-12T14:58:00.702Z",
      "updated_by": "text",
      "updated_at": "2025-09-12T14:58:00.702Z"
    }
  ]
}

Buscar arquivos

post
Autorizações
Corpo
idsstring · uuid[]Opcional
Respostas
200

Files queried successfully

application/json
post
POST /api/files/files/query HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 48

{
  "ids": [
    "123e4567-e89b-12d3-a456-426614174000"
  ]
}
{
  "files": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "text",
      "organization_id": "123e4567-e89b-12d3-a456-426614174000",
      "solution_id": "text",
      "url": "text",
      "status": "PENDING",
      "content_type": "APPLICATION_OCTET_STREAM",
      "content_length": 1,
      "created_by": "text",
      "created_at": "2025-09-12T14:58:00.702Z",
      "updated_by": "text",
      "updated_at": "2025-09-12T14:58:00.702Z"
    }
  ]
}

Obter arquivo

get
Autorizações
Parâmetros de rota
fileIdstringObrigatório
Respostas
200

File retrieved successfully

application/json
get
GET /api/files/files/{fileId} HTTP/1.1
Host: api.zydon.com.br
Authorization: Bearer JWT
Accept: */*
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "organization_id": "123e4567-e89b-12d3-a456-426614174000",
  "solution_id": "text",
  "url": "text",
  "status": "PENDING",
  "content_type": "APPLICATION_OCTET_STREAM",
  "content_length": 1,
  "created_by": "text",
  "created_at": "2025-09-12T14:58:00.702Z",
  "updated_by": "text",
  "updated_at": "2025-09-12T14:58:00.702Z"
}

Obter conteúdo do arquivo

get
Parâmetros de rota
fileIdstringObrigatório
Parâmetros de consulta
jwtstringObrigatório
Respostas
302

Redirected to file content url

Sem conteúdo

get
GET /api/files/files/{fileId}/content HTTP/1.1
Host: api.zydon.com.br
Accept: */*

Sem conteúdo