Submit a form response
Log in to add to favouritesThis endpoint allows you to post a form response
POST/api/forms/projects/{projectId}/contenttypes/{contentTypeId}/languages/{language}/entries
Parameters
Name | Parameter type | Type | Format | Description |
---|---|---|---|---|
projectId(required) | path | string | - | The project identifier found in the project overview screen of the management console. |
contentTypeId(required) | path | string | - | The content type identifier. |
language(required) | path | string | language | The language property specifies the language variation of the form, or use `default` for the default language. |
formData(required) | body | object | - | The user submitted form data collected from the rendered form |
Responses
HTTP status code | Reason | Model |
---|---|---|
200 | Created | Form response confirmation |
404 | Project not found | Error |
404 | Content type not found | Error |
422 | Language is invalid | Error |
500 | Internal server error | Error |
Examples
An example of submitting a form response for a form containing name, emailAddress, mobile fields
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"
}'