Skip to main content
POST
/
api
/
management
/
spreadsheet-operations
/
export
/
{type}
Exportar planilha
curl --request POST \
  --url https://api.olie.ai/api/management/spreadsheet-operations/export/{type} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "columns": [
    "project.id",
    "project.name",
    "project.customer"
  ],
  "dynamic_forms": [
    {
      "model": "project"
    },
    {
      "model": "project_funnel",
      "id": "019dd427-5d13-71bf-9a09-d75aa2bf4bd7"
    },
    {
      "model": "funnel_step",
      "id": "019dd427-5d13-71bf-9a09-d75aa2bf4be0"
    }
  ],
  "filters": [
    {
      "field": "status",
      "operator": "EQUALS",
      "value": 1,
      "logical_operator": "and",
      "arguments": []
    }
  ]
}
'
{
  "response": true,
  "spreadsheet_operation": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "action": "export",
    "type": "project",
    "status": "completed",
    "total_rows": 120,
    "processed_rows": 120,
    "percentage": 100,
    "errors_count": 0,
    "metadata": {},
    "file_name": "project_2026-06-01-143022.xlsx",
    "initiator_type": "App\\Models\\User",
    "initiator_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "initiator": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "avatar_url": "<string>"
    },
    "started_at": "2023-11-07T05:31:56Z",
    "completed_at": "2023-11-07T05:31:56Z",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

type
enum<string>
required

Tipo de operação (domínio alvo). Atualmente: project.

Available options:
project

Body

application/json
columns
enum<string>[]
required

Chaves das colunas (deve incluir todas as requiredKeys).

Available options:
project.id,
project.code,
project.name,
project.description,
project.impact,
project.status,
project.customer,
project.contact,
project.budget,
project.created_by,
project.assignees,
project.funnels,
project.steps,
project.tags,
project.add_to_funnel,
project.groups,
project.created_at,
project.updated_at
dynamic_forms
object[]

Formulários dinâmicos opcionais que entram no layout e no payload de exportação.

filters
object[]

Busca avançada (estrutura compatível com App\Utils\QueryingModels).

Response

Operação de export criada com sucesso

response
boolean
Example:

true

spreadsheet_operation
object