Skip to main content

Submit a form response

Log in to add to favourites
This endpoint allows you to post a form response
POST/api/forms/projects/{projectId}/contenttypes/{contentTypeId}/languages/{language}/entries

Parameters

NameParameter typeTypeFormatDescription
projectId(required)pathstring-The project identifier found in the project overview screen of the management console.
contentTypeId(required)pathstring-The content type identifier.
language(required)pathstringlanguageThe language property specifies the language variation of the form, or use `default` for the default language.
formData(required)bodyobject-The user submitted form data collected from the rendered form

Responses

HTTP status codeReasonModel
200CreatedForm response confirmation
404Project not foundError
404Content type not foundError
422Language is invalidError
500Internal server errorError

Examples

An example of submitting a form response for a form containing name, emailAddress, mobile fields

cURL
curl --location --globoff 'https://cms-{alias}.cloud.contensis.com/api/forms/projects/{projectId}/contentTypes/{contentTypeId}/languages/{language}/entries' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
  "name": "Emily Dawson",
  "emailAddress": "emily.dawson@fictionalcorp.com",
  "mobile": "07123 987654"
}'

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request