Create a submission to a form
Headers
-
Content-Type string
-
Accept string
-
X-PLANNR-ACCOUNT-UUID string
Body
-
account_uuid string
UUID of the account to attach the form submission to, if left blank will use the authenticated account
POST
/api/v1/form/{form_uuid}/submission
curl \
-X POST https://api.plannrcrm.com/api/v1/form/form_uuid/submission \
-H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
-d '{"account_uuid":"7c7881f0-909a-4186-9445-26dfb4a71767"}'
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
{
"account_uuid": "7c7881f0-909a-4186-9445-26dfb4a71767"
}
Response examples (200)
{
"form": {
"live": true,
"uuid": "f3f170d1-56f9-476a-b0b6-07ebc0788e9a",
"title": "Annual Catchup 2022",
"sections": "App\\Http\\Resources\\FormQuestionResource",
"created_at": "2025-01-17T11:18:30+00:00",
"updated_at": "2025-01-17T11:18:30+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": "821401ec-8cb6-40d1-b1ae-2de9e2ff25f3",
"stage": "draft",
"account": {
"firm": "App\\Http\\Resources\\FirmResource",
"name": "Gareth Thompson",
"role": "client",
"tags": "App\\Http\\Resources\\TagResource",
"type": "client",
"uuid": "c6357978-2c14-4f0d-9f2a-5593583d4d4d",
"email": "gareth@codepotato.co.uk",
"groups": "App\\Http\\Resources\\GroupResource",
"owners": "App\\Http\\Resources\\AccountResource",
"last_name": "Thompson",
"created_at": "2025-01-17T11:18:30+00:00",
"first_name": "Gareth",
"updated_at": "2025-01-17T11:18:30+00:00",
"with_login": true,
"custom_fields": "App\\Http\\Resources\\CustomFieldValueResource",
"introduced_by": "App\\Http\\Resources\\AccountResource",
"primary_email": "App\\Http\\Resources\\ContactDetailResource",
"can_be_deleted": "false",
"assigned_adviser": "App\\Http\\Resources\\AccountResource",
"next_review_date": "2025-01-17T11:18:30+00:00",
"has_joint_account": true,
"current_time_entry": "App\\Http\\Resources\\TimeEntryResource",
"first_contact_date": "2025-01-17T11:18:30+00:00",
"external_references": "App\\Http\\Resources\\ExternalReferenceResource",
"assigned_paraplanner": "App\\Http\\Resources\\AccountResource",
"previous_review_date": "2025-01-17T11:18:30+00:00",
"primary_phone_number": "App\\Http\\Resources\\ContactDetailResource",
"assigned_administrator": "App\\Http\\Resources\\AccountResource",
"anniversary_review_date": "2025-01-17T11:18:30+00:00"
},
"answers": [
{
"last_name": "olive",
"first_name": "john"
}
],
"request": {
"form": "App\\Http\\Resources\\FormResource",
"uuid": "d64a7288-5b4c-4e11-a306-83ebde88a340",
"created_at": "2025-01-17T11:18:30+00:00",
"submission": "App\\Http\\Resources\\FormSubmissionResource",
"updated_at": "2025-01-17T11:18:30+00:00",
"description": "Please submit your annual survey form",
"has_submission": true
},
"created_at": "2025-01-17T11:18:30+00:00",
"updated_at": "2025-01-17T11:18:30+00:00"
}