Update Template Mapping

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 Authorization header:
    • Authorization: Bearer {USER-TOKEN}

Path and Query Parameters

NameTypeRequiredDescription
user_typestringYesMust be set to ENTERPRISE_API.

Request Body

  • Content-Type: multipart/form-data
NameTypeRequiredDescription
mappingtextYesSpecifies the type of mapping
nametextYesSpecifies 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 CodeDescription
400Bad Request
401Unauthorized - Invalid or missing token
404Template not found
500Internal Server Error

Usage Notes

  • Ensure the bearer token is valid and has permission to update templates.

  • The mapping field must be a valid JSON string.

  • Only update templates you have access to.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Query Params
string
Body Params
string

Sample Mapping: [{"signatures":[{"x":35,"y":703,"width":95,"height":65,"pageNo":1,"isRequired":1},{"x":137,"y":703,"width":95,"height":65,"pageNo":1,"isRequired":1},{"x":404,"y":703,"width":95,"height":65,"pageNo":1,"isRequired":1},{"x":538,"y":703,"width":95,"height":65,"pageNo":1,"isRequired":1}]}]

string

Project name

Response

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!