answers-history

Salvar versão das respostas

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 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 nullable

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

project_funnel_idinteger nullable

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

funnel_step_idinteger nullable

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 nullable

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

Changed in 2 of the 98 revisions of this API.24299

  • d8fb547e20a224295See the full diff
    • ▲

      the request property became not nullable

      request-property-became-not-nullable

    • ▲

      the request property became not nullable

      request-property-became-not-nullable

    • ▲

      the request property became required

      request-property-became-required

    • ▲

      the request property became required

      request-property-became-required

    • ▲

      the request property became required

      request-property-became-required

    • ▲

      the request property became required

      request-property-became-required

    • ▲

      the request property type changed from no type to string

      request-property-type-changed

    • ▲

      the request property type changed from no type to integer

      request-property-type-changed

    • ▲

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

      request-property-type-changed

    • ▲

      the response property /// became nullable for the status

      response-property-became-nullable

    • ▲

      the response property /// became nullable for the status

      response-property-became-nullable

    • ▲

      the response property / became nullable for the status

      response-property-became-nullable

    • ▲

      the response property // became nullable for the status

      response-property-became-nullable

    • ▲

      the response property / became nullable for the status

      response-property-became-nullable

    • ▲

      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

      response-property-list-of-types-widened

    • ▲

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

      response-property-list-of-types-widened

    • ▲

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

      response-property-list-of-types-widened

    • ▲

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

      response-property-type-changed

    • ▲

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

      response-property-type-changed

    • ▲

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

      response-property-type-changed

    • ▲

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

      response-property-type-changed

    • ▲

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

      response-property-type-changed

    • ▲

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

      response-property-type-changed

    • ▲

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

      response-property-type-changed

    • ●

      removed the optional property / from the response with the status

      response-optional-property-removed

    • ●

      removed the optional property / from the response with the status

      response-optional-property-removed

    • ●

      removed the optional property / from the response with the status

      response-optional-property-removed

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ●

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

      response-property-enum-value-added

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

      added the new optional request property

      new-optional-request-property

    • ○

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

      request-property-any-of-added

    • ○

      the request property became nullable

      request-property-became-nullable

    • ○

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

      response-property-any-of-added

    • ○

      added optional request body

      request-body-added-optional

    • ○

      added the media type application/json for the response with the status

      response-media-type-added

    • ○

      added the non-success response with the status

      response-non-success-status-added

    • ○

      added the non-success response with the status

      response-non-success-status-added