# Update a Message Template

> Updates an existing message template, by the template ID.

Updates an existing message template, by the template ID.

## API Endpoint

`PUT` `{accessURL}/{organizationName}/identity_/api/MessageTemplate/{templateId}`

Replace `{accessURL}` in all endpoint paths with the base URL for your cloud platform:

| Cloud platform | Access URL |
| --- | --- |
| Test Cloud | `https://cloud.uipath.com/` |
| Test Cloud Public Sector | `https://govcloud.uipath.us/` |
| Test Cloud Dedicated | `https://{customURL}.dedicated.uipath.com/` |

## Scopes

Requires the following scopes:

* PM.MessageTemplate
* PM.MessageTemplate.Write

## Request Headers

```
--header 'Authorization: Bearer {access_token}'\
--header 'Content-Type: application/json'
```

## Path Parameters

| Param | Data type | Description |
| --- | --- | --- |
| `templateId`  (required) | String | The ID of message template you want to update. |

## Request Body

The request body contains the message ID and the new content.

```
{
  "id": 0,
  "value": "string"
}
```

## Responses

### 200 OK

The message template gets updated and returns the new information.

```
{
  "id": 0,
  "name": "string",
  "value": "string"
}
```
