Update Tool Api V1 Workstreams Tools Tool Id Patch
patch
/api/v1/workstreams/tools/{tool_id}Update Tool
Change one or more fields of a custom tool in the caller's workspace.
Every change raises the tool's version and records a new immutable version.
Send `expected_version` to refuse the change if someone else updated the tool first.
Path parameters
tool_idrequiredpath | Identifier of the custom tool in the caller's workspace. |
Request bodyapplication/json
| Field | Type | Description |
|---|---|---|
expected_version | integer | null | Optional optimistic-lock guard; rejects an edit based on a stale version. |
display_name | string | null | β |
description | string | null | β |
category | string | null | β |
endpoint_path | string | null | β |
http_method | string | null | β |
parameters | object | null | β |
auth_config | object | null | β |
body | string | null | β |
body_language | string | null | β |
is_enabled | boolean | null | β |
Responses
200Successful Response
| Field | Type | Description |
|---|---|---|
idrequired | string (uuid) | β |
namerequired | string | β |
display_namerequired | string | β |
descriptionrequired | string | β |
categoryrequired | string | β |
endpoint_pathrequired | string | null | β |
http_methodrequired | string | β |
parametersrequired | object | βshow nestedEmpty object. |
auth_configrequired | object | null | β |
workspace_idrequired | string (uuid) | β |
is_enabledrequired | boolean | β |
body | string | null | β |
body_language | string | null | β |
version | integer | β |
body_sha256 | string | null | β |
tool_versionrequired | string | β |
executorrequired | string | β |
provenance | string | β |
deprecated_at | string (date-time) | null | β |
422Validation Error
| Field | Type | Description |
|---|---|---|
detail | ValidationError[] | βitem shape |
curl https://api.dev.arch.ie/api/v1/workstreams/tools/<tool_id> \
-X PATCH \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{
"expected_version": null,
"display_name": null,
"description": null,
"category": null,
"endpoint_path": null,
"http_method": null,
"parameters": null,
"auth_config": null,
"body": null,
"body_language": null,
"is_enabled": null
}'