Create a form
Creates a new form with the given name in a workspace of the token’s team. The form starts empty: save its questions, pages and settings with Update a form’s definition. Needs the forms:write scope and editor access to the workspace.
POST
https://api.responsly.com/v1/forms | Field | Required | Description |
|---|---|---|
workspace_id | yes | The workspace for the form, for example from Get workspaces. |
name | yes | Name of the form, up to 255 characters. |
Example
Section titled “Example”curl -X POST https://api.responsly.com/v1/forms \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{"workspace_id": "Wk3nP0aQ", "name": "Post-purchase survey"}'The response is 201 Created with the new form, in the same shape as Get a form, including its version. The definition is included only for a token with the forms:read scope.
Errors
Section titled “Errors”| Status | Meaning |
|---|---|
403 | The token lacks forms:write, the workspace belongs to another team or you cannot edit it, or the team’s plan allows no more forms. |
422 | workspace_id or name is missing or invalid. |