# Update a form `PATCH / PUT / POST /api/v1/forms/{id}` Updates a form by ID. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Forms → Write**. ## Path parameters - `id` (integer, required) — ID of the form. ## Body parameters - `name` (string) — Internal form name, up to 100 characters. Supply a non-empty value when changing it. - `title` (string or null) — Title shown to people filling in the form, up to 140 characters. - `common_fields` (map or array) — Shared field configuration. - `user_fields` (map) — Form definition. Put custom sections and their field definitions in form.sections. Keep existing element IDs when editing them. Managed forms are read-only. An unchanged request returns the message key `entities.form.messages.no_changes`. ## Request (PATCH) Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request PATCH \ --url "https://api.asdincloud.com/api/v1/forms/${ID:?Set ID}" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "Content-Type: application/json" \ --data '{"title":"Register for an autumn tryout"}' ``` ## Request (PUT) Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request PUT \ --url "https://api.asdincloud.com/api/v1/forms/${ID:?Set ID}" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "Content-Type: application/json" \ --data '{"title":"Register for an autumn tryout"}' ``` ## Request (POST) Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request POST \ --url "https://api.asdincloud.com/api/v1/forms/${ID:?Set ID}" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "Content-Type: application/json" \ --data '{"title":"Register for an autumn tryout"}' ``` ## Response **200 OK** Returns a successful update response. Example with fictional data and selected fields. ```json { "status": "success", "message_key": "entities.form.messages.updated" } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `404` — The requested record was not found. - `400` — The fields or form definition could not be saved.