FormsPublish a form

Publish a form

Needs: Forms, Read-write

Publishes a form live (public) or internally, or turns its link off, and returns the link. A live form cannot contain staff or client select fields. Incident and prospect forms must be ready. Turning a form off disables the old link, and publishing again creates a new link.

Note: With off, published is off and a note explains that the old link no longer works. The url shown is an example.

curl -X POST "https://app.imploy.com.au/api/integrations/v1/forms/123/publish" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "mode": "public",
  "collect_submitter_id": "optional"
}'
{
  "form_id": 14,
  "published": "public",
  "url": "https://app.imploy.com.au/..."
}
POST
/forms/{id}/publish
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.
Content-Typestring
Required

The media type of the request body

Options: application/json
modestring
Required

public (anyone with the link), internal (an Imploy login is required and the submitter is captured) or off.

collect_submitter_idboolean

Public forms: ask for a name and email. true, false or the text optional.

redirect_urlstring

Send submitters here after submitting. null to stop.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

Path Parameters

idinteger
Required

The form id.

Body

application/json
modestring
Required

public (anyone with the link), internal (an Imploy login is required and the submitter is captured) or off.

collect_submitter_idboolean

Public forms: ask for a name and email. true, false or the text optional.

redirect_urlstring

Send submitters here after submitting. null to stop.

Responses

OK