Store a submission request
Headers
-
Content-Type string
-
Accept string
-
X-PLANNR-ACCOUNT-UUID string
Body
-
description string
Description of the submission request
POST
/api/v1/form/{form_uuid}/submission-request/{account_uuid}
curl \
--request POST https://api.plannrcrm.com/api/v1/form/form_uuid/submission-request/account_uuid \
--header "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
--data '{"description":"Please can you submit your annual survey form"}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}
# Payload
{
"description": "Please can you submit your annual survey form"
}
Response examples (201)
{
"form": {
"live": true,
"uuid": "0ed35562-ed44-4556-a617-ae50bf1a2df3",
"title": "Annual Catchup 2022",
"sections": "App\\Http\\Resources\\FormQuestionResource",
"created_at": "2025-02-20T10:13:03+00:00",
"updated_at": "2025-02-20T10:13:03+00:00",
"visibility": "public",
"client_type": "client",
"description": "This is the annual catchup form for 2022",
"allowed_hosts": [
"domain.com",
"subdomain.domain.com"
],
"create_client": true,
"draft_submissions_count": 5,
"submitted_submissions_count": 5
},
"uuid": "a809e420-34da-47d4-95ca-3dbd8044c3f6",
"created_at": "2025-02-20T10:13:03+00:00",
"submission": {
"form": "App\\Http\\Resources\\FormResource",
"uuid": "bab6e023-4714-4db5-a850-240e729a237f",
"stage": "draft",
"account": "App\\Http\\Resources\\AccountResource",
"answers": [
{
"last_name": "olive",
"first_name": "john"
}
],
"request": "App\\Http\\Resources\\FormSubmissionRequestResource",
"created_at": "2025-02-20T10:13:03+00:00",
"updated_at": "2025-02-20T10:13:03+00:00"
},
"updated_at": "2025-02-20T10:13:03+00:00",
"description": "Please submit your annual survey form",
"has_submission": true
}