> This page is for version v1 (default).
> For other versions, use one of these documentation indexes:
> - v1 (default): https://doc.youratlas.com/v1/llms.txt
> - v2: https://doc.youratlas.com/v2/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://doc.youratlas.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://doc.youratlas.com/_mcp/server.

# Update tool

PUT https://api.youratlas.com/v1/api/tools/{id}
Content-Type: application/json

Updates a tool's name, type and settings.

Reference: https://doc.youratlas.com/api-reference/atlas-api/tools/update-tool

## Authentication

- `api-key` header (required) — Your Atlas API key. Get it from the Atlas Portal under Settings > API Keys.

## Request

### Path parameters

- `id` (string, required) — ID of the tool.

### Body (application/json)

This endpoint expects a ToolBody.

- `Name` (string, required)
- `Type` (enum, required)
  - Allowed values: `CustomTool`, `PlayableAudio`, `SMSOneWay`, `SMSVerification`
- `Settings` (string, optional) — JSON-serialized tool settings
- `TemplateId` (string, optional)
- `Categories` (string, optional)
- `Group` (string, optional)
- `Purpose` (string, optional)

## Response

### 204

Tool updated

## Errors

### 400 Bad Request Error

Bad request

- `error` (ErrorError, optional)

### 401 Unauthorized Error

Invalid or missing API key

- `error` (ErrorError, optional)

### 404 Not Found Error

Resource not found

- `error` (ErrorError, optional)

### 500 Internal Server Error

Internal server error

- `error` (ErrorError, optional)

## Types

### ErrorError

- `message` (string, optional)
- `code` (string, optional)
- `requestId` (string, optional)

## Examples

**Request**

```json
{
  "Name": "Send confirmation SMS",
  "Type": "SMSOneWay",
  "Settings": "{\"message\":\"Your appointment is confirmed.\"}",
  "Purpose": "Text the caller a confirmation after booking."
}
```

**SDK Code**

```python Tools_updateTool_example
import requests

url = "https://api.youratlas.com/v1/api/tools/id"

payload = {
    "Name": "Send confirmation SMS",
    "Type": "SMSOneWay",
    "Settings": "{\"message\":\"Your appointment is confirmed.\"}",
    "Purpose": "Text the caller a confirmation after booking."
}
headers = {
    "api-key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.json())
```

```javascript Tools_updateTool_example
const url = 'https://api.youratlas.com/v1/api/tools/id';
const options = {
  method: 'PUT',
  headers: {'api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"Name":"Send confirmation SMS","Type":"SMSOneWay","Settings":"{\"message\":\"Your appointment is confirmed.\"}","Purpose":"Text the caller a confirmation after booking."}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Tools_updateTool_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.youratlas.com/v1/api/tools/id"

	payload := strings.NewReader("{\n  \"Name\": \"Send confirmation SMS\",\n  \"Type\": \"SMSOneWay\",\n  \"Settings\": \"{\\\"message\\\":\\\"Your appointment is confirmed.\\\"}\",\n  \"Purpose\": \"Text the caller a confirmation after booking.\"\n}")

	req, _ := http.NewRequest("PUT", url, payload)

	req.Header.Add("api-key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Tools_updateTool_example
require 'uri'
require 'net/http'

url = URI("https://api.youratlas.com/v1/api/tools/id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"Name\": \"Send confirmation SMS\",\n  \"Type\": \"SMSOneWay\",\n  \"Settings\": \"{\\\"message\\\":\\\"Your appointment is confirmed.\\\"}\",\n  \"Purpose\": \"Text the caller a confirmation after booking.\"\n}"

response = http.request(request)
puts response.read_body
```

```java Tools_updateTool_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.put("https://api.youratlas.com/v1/api/tools/id")
  .header("api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"Name\": \"Send confirmation SMS\",\n  \"Type\": \"SMSOneWay\",\n  \"Settings\": \"{\\\"message\\\":\\\"Your appointment is confirmed.\\\"}\",\n  \"Purpose\": \"Text the caller a confirmation after booking.\"\n}")
  .asString();
```

```php Tools_updateTool_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('PUT', 'https://api.youratlas.com/v1/api/tools/id', [
  'body' => '{
  "Name": "Send confirmation SMS",
  "Type": "SMSOneWay",
  "Settings": "{\\"message\\":\\"Your appointment is confirmed.\\"}",
  "Purpose": "Text the caller a confirmation after booking."
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Tools_updateTool_example
using RestSharp;

var client = new RestClient("https://api.youratlas.com/v1/api/tools/id");
var request = new RestRequest(Method.PUT);
request.AddHeader("api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"Name\": \"Send confirmation SMS\",\n  \"Type\": \"SMSOneWay\",\n  \"Settings\": \"{\\\"message\\\":\\\"Your appointment is confirmed.\\\"}\",\n  \"Purpose\": \"Text the caller a confirmation after booking.\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Tools_updateTool_example
import Foundation

let headers = [
  "api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "Name": "Send confirmation SMS",
  "Type": "SMSOneWay",
  "Settings": "{\"message\":\"Your appointment is confirmed.\"}",
  "Purpose": "Text the caller a confirmation after booking."
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.youratlas.com/v1/api/tools/id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "PUT"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```