Skip to main content
POST
/
api
/
management
/
dynamic-forms
/
set-form-answers
Responder formulário dinâmico
curl --request POST \
  --url https://api.olie.ai/api/management/dynamic-forms/set-form-answers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
"{\n    \"target\": {\n        \"pivot_class\": \"ProjectLooseForm\",\n        \"form_id\": 380,\n        \"id\": 619, \n        \"project_id\": \"019b277f-e453-733d-a00e-6d26d444008b\",\n        \"father_class\": \"project\",\n        \"father_id\": \"019b277f-e453-733d-a00e-6d26d444008b\"\n    },\n    \"form_answers\": [\n        {\n            \"id\": 2136,\n            \"answer\": 123\n        },\n        {\n            \"id\": 2137,\n            \"answer\": \"Teste 1\" // este campo deveria ser um array, pois o campo de ID 2137 é do tipo checkbox e espera um array\n        }\n    ]\n}"
'
{
"edges": [
{
"answer": "123",
"answered_by": "019aeaa3-2370-731c-9008-be759795f449",
"id": 2136,
"label": "Numérico",
"model": "ProjectLooseForm",
"updated_at": "2025-12-16T14:58:25.000000Z"
},
{
"answer": "[\"Teste 1\",\"Teste 2\",\"Teste 3\"]",
"answered_by": "019aeaa3-2370-731c-9008-be759795f449",
"id": 2137,
"label": "Checkbox",
"model": "ProjectLooseForm",
"updated_at": "2025-12-16T14:55:41.000000Z"
}
],
"response": true
}

Authorizations

Authorization
string
header
required

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

Body

application/json
form_answers
object[]
Example:
[
{ "answer": "", "id": 0 },
{ "answer": "", "id": 0 }
]
target
object

Response

Resposta: Formulário objeto projeto / Resposta: Formulário de etapa / Resposta: Formulário do funil / Resposta: Formulário avulso do projeto

edges
object[]
Example:
[
{
"answer": "Exemplo de resposta no formulário do objeto projeto: Voluptates ipsam amet vel mollitia.",
"answered_by": "019aeaa3-2370-731c-9008-be759795f449",
"id": 2130,
"label": "Texto curto",
"model": "Project",
"updated_at": "2025-12-16T14:49:55.000000Z"
},
{
"answer": "Exemplo de resposta no formulário do objeto projeto: Quia perspiciatis voluptates maiores.",
"answered_by": "019aeaa3-2370-731c-9008-be759795f449",
"id": 2131,
"label": "Texto longo",
"model": "Project",
"updated_at": "2025-12-16T14:49:55.000000Z"
}
]
response
boolean
Example:

true