answers-history

Salvar versão das respostas

Changed on

Congela as respostas atuais de um formulário em uma nova versão do histórico; com clean_edges, os campos são esvaziados em seguida para o próximo ciclo. O formulário é identificado pelo pivot, em que father_class e father_id são obrigatórios.

post/api/management/answers-history

Request

  • Base URL: https://api.olie.ai
  • URL: https://api.olie.ai/api/management/answers-history
  • Auth: HTTP bearer

Request body

pivot_classstring required

Tipo de vínculo do formulário (ex.: App\Models\ProjectLooseForm). Define quais atributos de endereço são obrigatórios.

form_idinteger required

ID do formulário.

project_idstring uuid

Atributo de endereço: ID do projeto, para vínculos de funil, etapa e avulso.

project_funnel_idinteger

Atributo de endereço: ID do funil, para App\Models\ProjectFunnelAssignment.

funnel_step_idinteger

Atributo de endereço: ID da etapa, para App\Models\ProjectStepForm.

father_classstring required

Tipo do registro de origem, quase sempre App\Models\Project. Usado para conferir se o formulário está anexado ali.

father_idstring required

ID do registro de origem.

clean_edgesboolean

Se true, esvazia as respostas do formulário depois de salvar a versão. Padrão: false.

Response

Sucesso

responseboolean

Indicador de sucesso da requisição. Sempre true nas respostas bem-sucedidas.

Changes

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • warning

      removed the optional property /// from the response with the status

    • breaking

      the request property became not nullable

    • breaking

      the request property became not nullable

    • breaking

      the request property became required

    • breaking

      the request property became required

    • breaking

      the request property became required

    • breaking

      the request property became required

    • breaking

      the request property type changed from no type to string

    • breaking

      the request property type changed from no type to integer

    • breaking

      the request property type changed from no type to string, and format from no format to uuid

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property /// became nullable for the status

    • breaking

      the response property / became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property / became nullable for the status

    • breaking

      response property answer_history/answers/items/answer list-of-types was widened by adding types array boolean number and object to media type application/json of response 200

    • breaking

      response property answer_history/answers/items/options list-of-types was widened by adding types object to media type application/json of response 200

    • breaking

      response property answer_history/model_id list-of-types was widened by adding types string to media type application/json of response 200

    • breaking

      the /// response's property type changed from no type to string for status

    • breaking

      the /// response's property type changed from no type to string for status

    • breaking

      the /// response's property type changed from no type to string, and format from no format to date-time for status

    • breaking

      the /// response's property type changed from no type to string for status

    • breaking

      the /// response's property type changed from no type to string for status

    • breaking

      the //// response's property type changed from no type to string for status

    • breaking

      the // response's property format changed from uri to no format for status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      added the new and enum value to the /// response property for the response status

    • warning

      added the new attachment enum value to the /// response property for the response status

    • warning

      added the new checkbox enum value to the /// response property for the response status

    • warning

      added the new contact enum value to the /// response property for the response status

    • warning

      added the new counter enum value to the /// response property for the response status

    • warning

      added the new currency enum value to the /// response property for the response status

    • warning

      added the new customer enum value to the /// response property for the response status

    • warning

      added the new date enum value to the /// response property for the response status

    • warning

      added the new date_and_time enum value to the /// response property for the response status

    • warning

      added the new email enum value to the /// response property for the response status

    • warning

      added the new hide enum value to the /// response property for the response status

    • warning

      added the new link enum value to the /// response property for the response status

    • warning

      added the new long_text enum value to the /// response property for the response status

    • warning

      added the new matrix enum value to the /// response property for the response status

    • warning

      added the new number enum value to the /// response property for the response status

    • warning

      added the new or enum value to the /// response property for the response status

    • warning

      added the new phone enum value to the /// response property for the response status

    • warning

      added the new project enum value to the /// response property for the response status

    • warning

      added the new radio enum value to the /// response property for the response status

    • warning

      added the new rich_text enum value to the /// response property for the response status

    • warning

      added the new select enum value to the /// response property for the response status

    • warning

      added the new short_text enum value to the /// response property for the response status

    • warning

      added the new show enum value to the /// response property for the response status

    • warning

      added the new time enum value to the /// response property for the response status

    • warning

      added the new undefined enum value to the /// response property for the response status

    • warning

      added the new user enum value to the /// response property for the response status

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added subschema #1 subschema #2 to the request property anyOf list

    • info

      the request property became nullable

    • info

      added subschema #1 subschema #2 subschema #3 subschema #4 to the /// response property anyOf list for the response status