---
title: "Update ServiceNow template"
method: PUT
path: "/api/v2/integration/servicenow/handles/{template_id}"
tags: ["ServiceNow Integration"]
---

# Update ServiceNow template

`PUT /api/v2/integration/servicenow/handles/{template_id}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/integration/servicenow/handles/{template_id}`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Update a ServiceNow template by ID.

## Path parameters

- `template_id` string, uuid, required

## Request body

- ServiceNowTemplateUpdateRequest: Request to update a ServiceNow template
  - `data` ServiceNowTemplateUpdateRequestData, required: Data object for updating a ServiceNow template
    - `attributes` ServiceNowTemplateUpdateRequestAttributes, required: Attributes for updating a ServiceNow template
      - `assignment_group_id` string, uuid: The ID of the assignment group
      - `business_service_id` string, uuid: The ID of the business service
      - `fields_mapping` object: Custom field mappings for the template
      - `handle_name` string, required: The handle name of the template
      - `instance_id` string, uuid, required: The ID of the ServiceNow instance
      - `servicenow_tablename` string, required: The name of the destination ServiceNow table
      - `user_id` string, uuid: The ID of the user
    - `type` 'servicenow_templates', required: Type identifier for ServiceNow template resources

## Response `200`

OK

- ServiceNowTemplateResponse: Response containing a single ServiceNow template
  - `data` ServiceNowTemplateData, required: Data object for a ServiceNow template
    - `attributes` ServiceNowTemplateAttributes, required: Attributes of a ServiceNow template
      - `assignment_group_id` string, uuid: The ID of the assignment group
      - `business_service_id` string, uuid: The ID of the business service
      - `fields_mapping` object: Custom field mappings for the template
      - `handle_name` string, required: The handle name of the template
      - `instance_id` string, uuid, required: The ID of the ServiceNow instance
      - `servicenow_tablename` string, required: The name of the destination ServiceNow table
      - `user_id` string, uuid: The ID of the user
    - `id` string, uuid, required: Unique identifier for the ServiceNow template
    - `type` 'servicenow_templates', required: Type identifier for ServiceNow template resources

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
