Skip to content

updateFormDraft

PATCH
/api/v1/data-sources/{id}/form/draft
curl --request PATCH \
--url https://example.com/api/v1/data-sources/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/form/draft \
--header 'Content-Type: application/json' \
--data '{ "schema": {} }'

Replaces the editable draft schema without publishing. Existing submissions are untouched. Requires the manage capability.

id
required
string format: uuid
Media typeapplication/json
object
schema
required
object
key
additional properties
any
Examplegenerated
{
"schema": {}
}

Refreshed Form detail with the saved draft

Manage capability required

Draft schema rejected