Como modificar essa propriedades por api?

  • FIGEM
    Perguntado em 22 de março de 2025 às 11:35

    Boa tarde, tudo bem?

    Gostaria de saber como faço para alterar a propriedades do formulário via API, para:

    Status do Formulário

    Desativar em data específica ou ao atingir limite de envios

    Data de Vencimento

    Desative seu formulário em determinada data

    Limite de respostas

    Jotform Thread 25487991 Screenshot
  • Kyle Jotform Support
    Respondido em 22 de março de 2025 às 13:59

    Hi FIGEM,

    Our Portuguese Support agents are busy helping other Jotform users right now, so I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in Portuguese, let us know and we can have them do that. But, it might take a while until they're available again.

    Now, coming back to your question, updating form properties via API is easy. Let me show you how:

    1 . Use this endpoint below to update the status of your form (e.g., enable, disable, or set submission limits).

    Endpoint: PUT /form/{form_id}

    Example Request:

    json
    {
     "status": "DISABLED" // Possible values: ENABLED, DISABLED
    }

    2 . To set the date when the form will automatically deactivate.

    Endpoint: PUT /form/{form_id}

    Example Request:

    json
    {
     "expire_date": "2025-03-30 23:59" // Format: YYYY-MM-DD HH:MM
    }

    3 . Use this to set the maximum number of submissions a form can receive before being disabled:

    Endpoint: PUT /form/{form_id}

    Example Request:

    json
    {
     "submission_limit": 100 // Replace '100' with your desired limit
    }

    You can check out Jotform API Documentation for more details and examples.

    Let us know if there’s anything else we can help you with.