Skip to main content
PATCH
/
tool
/
{tool_id}
Python
from superu import SuperU

client = SuperU("YOUR_SUPERU_API_KEY")

payload = {
    "tool_id": "tool_01HXR9259WDZ2X3ZZKQ7HDG4C2",
    "name": "check-user-status-v2",
    "description": "Check if a user exists in CRM",
    "parameters": {
        "key": "value"
    },
    "tool_url": "/api/check-user",
    "tool_url_domain": "https://your-api.com",
    "type": "http",
    "async_": False
}

response = client.tools.update(**payload)
print(response)
{
  "status": "success",
  "tool_id": "tool_01HXR9259WDZ2X3ZZKQ7HDG4C2",
  "message": "Tool updated"
}

Authorizations

superU-Api-Key
string
header
required

Your SuperU API key.

Path Parameters

tool_id
string
required

Tool ID

Example:

"tool_01HXR9259WDZ2X3ZZKQ7HDG4C2"

Body

application/json

Request body for Update tool.

Tool Update Request schema.

name
string

Name value.

Example:

"check-user-status-v2"

description
string

Description value.

Example:

"Check if a user exists in CRM"

parameters
object

Parameters value.

Example:
{ "key": "value" }
tool_url
string

Tool url value.

Example:

"/api/check-user"

tool_url_domain
string

Tool url domain value.

Example:

"https://your-api.com"

type
string

Type value.

Example:

"http"

async_
boolean

Async value.

Example:

false

Response

Tool updated

Generic Response schema.

status
string

Status value.

Example:

"success"

message
string

Message value.

Example:

"Request completed successfully"

data
object

Data value.