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

# Update Template

# 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": {
    "/templates/{template_id}": {
      "put": {
        "summary": "Update Template",
        "description": "",
        "operationId": "show-template-copy",
        "parameters": [
          {
            "name": "template_id",
            "in": "path",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Max. 255 characters."
                  },
                  "description": {
                    "type": "string",
                    "description": "Max. 255 characters."
                  },
                  "acronym": {
                    "type": "string",
                    "description": "Max. 10 characters"
                  },
                  "redirect_url": {
                    "type": "string",
                    "description": "Max. 255 characters. We will append query-parameters to the url, so you can identify the visitor."
                  },
                  "layout": {
                    "type": "string",
                    "enum": [
                      "default",
                      "steps"
                    ]
                  },
                  "confirm_submit": {
                    "type": "boolean",
                    "description": "Show a confirmation modal before submitting the form?"
                  },
                  "show_header": {
                    "type": "boolean",
                    "description": "Show a header with the headline on the form page?"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "text/plain": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"data\": {\n        \"id\": \"templ_RpxGJNmGkN\",\n        \"name\": \"Test-Template\",\n        \"description\": \"A template for receiving user data.\",\n        \"acronym\": \"TEST-01\",\n        \"created_at\": \"2024-09-13T08:51:32+02:00\",\n        \"updated_at\": \"2024-09-13T11:57:33+02:00\",\n        \"redirect_url\": null\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "example": "templ_RpxGJNmGkN"
                        },
                        "name": {
                          "type": "string",
                          "example": "Test-Template"
                        },
                        "description": {
                          "type": "string",
                          "example": "A template for receiving user data."
                        },
                        "acronym": {
                          "type": "string",
                          "example": "TEST-01"
                        },
                        "created_at": {
                          "type": "string",
                          "example": "2024-09-13T08:51:32+02:00"
                        },
                        "updated_at": {
                          "type": "string",
                          "example": "2024-09-13T11:57:33+02:00"
                        },
                        "redirect_url": {}
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "66e3d8b4130b6f004fcc958c:66e3e089fff23400304b63b9"
}
```