Tools

Update Tool

patch/tool/{id}

Path parameters

idstring uuid required

The unique identifier for the resource.

Request body

OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR

Example request

{
  "messages": [
    {
      "timingMilliseconds": 1000
    }
  ],
  "timeoutSeconds": 20,
  "credentialId": "550e8400-e29b-41d4-a716-446655440000",
  "rejectionPlan": {
    "conditions": [
      {
        "type": "regex",
        "target": {
          "role": "user",
          "position": -1
        }
      }
    ]
  },
  "backoffPlan": {
    "baseDelaySeconds": 1,
    "excludedStatusCodes": [
      400,
      401,
      403,
      404
    ]
  }
}

Response

OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR
OR

Example response

{
  "messages": [
    {
      "timingMilliseconds": 1000
    }
  ],
  "timeoutSeconds": 20,
  "credentialId": "550e8400-e29b-41d4-a716-446655440000",
  "rejectionPlan": {
    "conditions": [
      {
        "type": "regex",
        "target": {
          "role": "user",
          "position": -1
        }
      }
    ]
  },
  "backoffPlan": {
    "baseDelaySeconds": 1,
    "excludedStatusCodes": [
      400,
      401,
      403,
      404
    ]
  }
}

Changes