إنتقل إلى المحتوى الرئيسي

Change a custom API tool or switch it on or off

PATCH 

/v1/agents/:agentId/custom-api-tools/:toolId

x-scope: "custom_api:write"

Changes the parts you send. A change to the request (method, url, headers, body_format, body, inputs) voids the last test, so the tool must pass a new test before it can be switched on again; a tool already on stays on. active: true switches the tool on only after a passing test of its current request (409 tool_not_tested otherwise) and goes in a request of its own, without a request change (422 invalid_request otherwise). A tool can't move to another site, because its login is the site's (422 invalid_request, param url). login changes the tool's login under the same rules as on create. Every part is checked before any is saved, so a refused change leaves the tool and its login as they were.

Request​

Responses​

The tool as it now is.

Response Headers
    X-Correlation-ID

    Correlation id for this request — paste into support tickets.