Skip to main content
POST
/
api
/
tools
/
{id}
/
activate
curl --request POST \
  --url https://api.yourapp.com/api/tools/tool_123/activate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "toolId": "tool_123",
    "activeState": true
  }'
{
  "success": true,
  "message": "Tool activation updated successfully"
}

Path Parameters

id
string
required
Tool ID

Request Body

toolId
string
required
Tool ID (must match path parameter)
activeState
boolean
required
Active state to set
  • true - Activate the tool
  • false - Deactivate the tool

Response

success
boolean
Indicates if the operation was successful
message
string
Response message
curl --request POST \
  --url https://api.yourapp.com/api/tools/tool_123/activate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "toolId": "tool_123",
    "activeState": true
  }'
{
  "success": true,
  "message": "Tool activation updated successfully"
}