Skip to main content
POST
/
api
/
management
/
dynamic-forms
/
get-form-answers
Consultar respostas de formulário dinâmico
curl --request POST \
  --url https://api.olie.ai/api/management/dynamic-forms/get-form-answers \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "father_class": "<string>",
  "father_id": "<uuid>",
  "form_id": "<integer>",
  "funnel_step_id": "<integer>",
  "id": "<string>",
  "pivot_class": "<string>",
  "project_funnel_id": "<integer>",
  "project_id": "<uuid>",
  "related_model_attribute_id": "<uuid>"
}
'
{
  "answers": [
    {
      "answer": "<string>",
      "answered_by": "<uuid>",
      "id": "<integer>",
      "label": "<string>",
      "model": "<string>",
      "updated_at": "<dateTime>"
    },
    {
      "answer": "<string>",
      "answered_by": "<uuid>",
      "id": "<integer>",
      "label": "<string>",
      "model": "<string>",
      "updated_at": "<dateTime>"
    }
  ],
  "last_updated_at": "<dateTime>",
  "response": "<boolean>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
father_class
string
Example:

"<string>"

father_id
string
Example:

"<uuid>"

form_id
string
Example:

"<integer>"

funnel_step_id
string
Example:

"<integer>"

id
string
Example:

"<string>"

pivot_class
string
Example:

"<string>"

project_funnel_id
string
Example:

"<integer>"

project_id
string
Example:

"<uuid>"

Example:

"<uuid>"

Response

Respostas do formulário retornadas com sucesso

answers
object[]
Example:
[
{
"answer": "<string>",
"answered_by": "<uuid>",
"id": "<integer>",
"label": "<string>",
"model": "<string>",
"updated_at": "<dateTime>"
},
{
"answer": "<string>",
"answered_by": "<uuid>",
"id": "<integer>",
"label": "<string>",
"model": "<string>",
"updated_at": "<dateTime>"
}
]
last_updated_at
string
Example:

"<dateTime>"

response
string
Example:

"<boolean>"