put
https://{host}/api/v2/templates/
Update Template Mapping
Updates a specific template created in the Enterprise API. Use this endpoint to modify the mapping and name of an existing template.
HTTP Method and URL
PUT {{host}}/api/v2/templates/141?user_type=ENTERPRISE_API
Authentication Requirements
- Bearer Token required in the
Authorizationheader:Authorization: Bearer {USER-TOKEN}
Path and Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| user_type | string | Yes | Must be set to ENTERPRISE_API. |
Request Body
- Content-Type:
multipart/form-data
| Name | Type | Required | Description |
|---|---|---|---|
| mapping | text | Yes | Specifies the type of mapping |
| name | text | Yes | Specifies the template name |
Example Request
PUT {{host}}/api/v2/templates/141?user_type=ENTERPRISE_API
Authorization: Bearer {USER-TOKEN}
Content-Type: multipart/form-data
mapping: [{"signatures":[{"x":35,"y":703,"width":95,"height":65,"pageNo":1,"isRequired":1}]}]
name: Copy of Manual PR FORM
Example Successful Response
{
"template_id": "141",
"name": "Copy of Manual PR FORM",
"mapping": [
{
"signatures": [
{
"x": 35,
"y": 703,
"width": 95,
"height": 65,
"pageNo": 1,
"isRequired": 1
}
]
}
],
"status": "updated",
"updated_at": "2024-06-10T12:34:56Z"
}
Error Responses
| Status Code | Description |
|---|---|
| 400 | Bad Request |
| 401 | Unauthorized - Invalid or missing token |
| 404 | Template not found |
| 500 | Internal Server Error |
Usage Notes
-
Ensure the bearer token is valid and has permission to update templates.
-
The
mappingfield must be a valid JSON string. -
Only update templates you have access to.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
