How to open, close and schedule a form through the RESTful API?
Hey,
Seems like you can only change if a form is published or not through the /settings/is_public attribute on a form itself but I can’t find how to open/close a form from the PATCH/forms/{id} endpoint.
Inspecting the web UI, I can see that it’s doing its things using the PUT/forms/{id}/access-scheduling endpoint but this seems hidden from the public RESTful API.
It comes from @picsoung so you can definitely consider that official
Hi @picsoung, is there any documentation or any news according to this request ?
Best regards
We should definitely be able to get the status of form if it is open or not and change it. I don’t understand why this simple feature is missing.
Hi,
The last answer is 3 months ago, there’s any news about the possibility to publish a form using the API ?
Regards,
Alexis
Any updates about publishing a form using the API?
What about having an attribute into form response indicating the form is currently closed to responses?
Hi,
Any news when the endpoint managing the access-scheduling will be made public ?
Is really better to display a close screen message, something like “Survey campaign closed” or “Survey campaign canceled” rather than making the link invalid via is is_public attribute.
curl --location --request PUT 'https://api.typeform.com/forms/pformid]/submission-rules' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer tfp_****************' \ --data '{ "closing_rules": " { "type": "manual" } ], "screens": { "ref": "custom-close-screen", "enabled": true, "title": "Survey campain is closed!", "properties": { "description": "Thank you for your interest in our survey! This campaign is now closed, and we’re no longer accepting responses. We greatly appreciate your time and feedback. Stay tuned for updates on how your input is helping us improve and grow!" } } ] }'
seems to work, but I would like to be sure this endpoint will not suddenly changing as is not publicly maintained