---
agentTools:
  projectIndex: https://dataforms.readme.io/llms.txt
---

# Update Data Form

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "DataForms.io API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.dataforms.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/dataforms/{form_id}": {
      "put": {
        "summary": "Update Data Form",
        "description": "",
        "operationId": "show-data-form-copy",
        "parameters": [
          {
            "name": "form_id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "headline": {
                    "type": "string",
                    "description": "Max. 50 characters"
                  },
                  "allow_multiple_submissions": {
                    "type": "boolean",
                    "description": "Only has an impact, if the form type is \"standard\""
                  },
                  "lock_after_submission": {
                    "type": "boolean",
                    "description": "Only has an impact, if the form type is \"collaborative\""
                  },
                  "redirect_url": {
                    "type": "string",
                    "description": "Leave empty, if you want to use the redirect_url-settings of the template."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"data\": {\n      \"id\": \"form_XXXX\",\n      \"template_id\": \"templ_XXXX\",\n      \"headline\": \"Sample-Project 3\",\n      \"type\": \"collaborative\",\n      \"allow_multiple_submissions\": true,\n      \"lock_after_submission\": false,\n      \"url\": \"https://form.dataforms.io/XXXXXXX\",\n      \"redirect_url\": null,\n      \"created_at\": \"2024-09-13T08:59:43+02:00\",\n    \t\"updated_at\": \"2024-09-13T09:48:19+02:00\"\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "form_XXXX"
                        },
                        "template_id": {
                          "type": "string",
                          "example": "templ_XXXX"
                        },
                        "headline": {
                          "type": "string",
                          "example": "Sample-Project 3"
                        },
                        "type": {
                          "type": "string",
                          "example": "collaborative"
                        },
                        "allow_multiple_submissions": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "lock_after_submission": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "url": {
                          "type": "string",
                          "example": "https://form.dataforms.io/XXXXXXX"
                        },
                        "redirect_url": {},
                        "created_at": {
                          "type": "string",
                          "example": "2024-09-13T08:59:43+02:00"
                        },
                        "updated_at": {
                          "type": "string",
                          "example": "2024-09-13T09:48:19+02:00"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "66e3d8b4130b6f004fcc958c:66e40eebae2a790030474b75"
}
```