curl --request PATCH \
--url https://api.devic.ai/v1/tool-servers/{toolServerId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"url": "<string>",
"enabled": true,
"mcpServerProperties": {
"mode": "public",
"slug": "<string>",
"status": "active"
},
"authenticationConfig": {
"authenticationMethod": "jwt",
"jwt": {
"token": "<string>"
},
"basic": {
"username": "<string>",
"password": "<string>"
},
"oauth2": {
"refreshToken": "<string>",
"clientId": "<string>",
"clientSecret": "<string>",
"refreshTokenEndpoint": "<string>",
"grant_type": "refresh_token",
"scope": "<string>",
"requestFormat": "json"
},
"customHeader": {
"headerName": "<string>",
"value": "<string>"
}
},
"imageUrl": "<string>",
"toolDefinitions": [
{
"function": {
"name": "<string>",
"description": "<string>",
"strict": true,
"parameters": {
"type": "<string>",
"properties": {},
"required": [
"<string>"
],
"additionalProperties": true
}
},
"type": "function",
"endpoint": "<string>",
"method": "GET",
"queryParametersKeys": [
"<string>"
],
"pathParametersKeys": [
"<string>"
],
"bodyPropertyKey": "<string>",
"customHeaders": [
{
"headerName": "<string>",
"value": "<string>"
}
],
"isFormDataBody": true,
"bodyMode": "simple",
"bodyJsonTemplate": "<string>",
"responsePostProcessingEnabled": true,
"responsePostProcessingTemplate": "<string>"
}
]
}
'{
"_id": "<string>",
"clientUID": "<string>",
"enabled": true,
"url": "<string>",
"identifier": "<string>",
"name": "<string>",
"description": "<string>",
"mcpType": true,
"mcpServerProperties": {
"mode": "public",
"slug": "<string>",
"status": "active"
},
"toolServerDefinitionId": "<string>",
"imageUrl": "<string>",
"creartionTimestampMs": 123,
"lastEditTimestampMS": 123,
"toolServerDefinition": {
"_id": "<string>",
"name": "<string>",
"description": "<string>",
"toolDefinitions": [
{
"function": {
"name": "<string>",
"description": "<string>",
"strict": true,
"parameters": {
"type": "<string>",
"properties": {},
"required": [
"<string>"
],
"additionalProperties": true
}
},
"type": "function",
"endpoint": "<string>",
"method": "GET",
"queryParametersKeys": [
"<string>"
],
"pathParametersKeys": [
"<string>"
],
"bodyPropertyKey": "<string>",
"customHeaders": [
{
"headerName": "<string>",
"value": "<string>"
}
],
"isFormDataBody": true,
"bodyMode": "simple",
"bodyJsonTemplate": "<string>",
"responsePostProcessingEnabled": true,
"responsePostProcessingTemplate": "<string>"
}
]
}
}Updates the tool server information. If toolDefinitions array is provided, it will update (or create) the tool server definition with the new tools.
curl --request PATCH \
--url https://api.devic.ai/v1/tool-servers/{toolServerId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"url": "<string>",
"enabled": true,
"mcpServerProperties": {
"mode": "public",
"slug": "<string>",
"status": "active"
},
"authenticationConfig": {
"authenticationMethod": "jwt",
"jwt": {
"token": "<string>"
},
"basic": {
"username": "<string>",
"password": "<string>"
},
"oauth2": {
"refreshToken": "<string>",
"clientId": "<string>",
"clientSecret": "<string>",
"refreshTokenEndpoint": "<string>",
"grant_type": "refresh_token",
"scope": "<string>",
"requestFormat": "json"
},
"customHeader": {
"headerName": "<string>",
"value": "<string>"
}
},
"imageUrl": "<string>",
"toolDefinitions": [
{
"function": {
"name": "<string>",
"description": "<string>",
"strict": true,
"parameters": {
"type": "<string>",
"properties": {},
"required": [
"<string>"
],
"additionalProperties": true
}
},
"type": "function",
"endpoint": "<string>",
"method": "GET",
"queryParametersKeys": [
"<string>"
],
"pathParametersKeys": [
"<string>"
],
"bodyPropertyKey": "<string>",
"customHeaders": [
{
"headerName": "<string>",
"value": "<string>"
}
],
"isFormDataBody": true,
"bodyMode": "simple",
"bodyJsonTemplate": "<string>",
"responsePostProcessingEnabled": true,
"responsePostProcessingTemplate": "<string>"
}
]
}
'{
"_id": "<string>",
"clientUID": "<string>",
"enabled": true,
"url": "<string>",
"identifier": "<string>",
"name": "<string>",
"description": "<string>",
"mcpType": true,
"mcpServerProperties": {
"mode": "public",
"slug": "<string>",
"status": "active"
},
"toolServerDefinitionId": "<string>",
"imageUrl": "<string>",
"creartionTimestampMs": 123,
"lastEditTimestampMS": 123,
"toolServerDefinition": {
"_id": "<string>",
"name": "<string>",
"description": "<string>",
"toolDefinitions": [
{
"function": {
"name": "<string>",
"description": "<string>",
"strict": true,
"parameters": {
"type": "<string>",
"properties": {},
"required": [
"<string>"
],
"additionalProperties": true
}
},
"type": "function",
"endpoint": "<string>",
"method": "GET",
"queryParametersKeys": [
"<string>"
],
"pathParametersKeys": [
"<string>"
],
"bodyPropertyKey": "<string>",
"customHeaders": [
{
"headerName": "<string>",
"value": "<string>"
}
],
"isFormDataBody": true,
"bodyMode": "simple",
"bodyJsonTemplate": "<string>",
"responsePostProcessingEnabled": true,
"responsePostProcessingTemplate": "<string>"
}
]
}
}Use JWT token for authentication
The unique identifier of the tool server
Tool server name
Tool server description
Base URL for the tool server API
Whether the tool server is enabled
Show child attributes
Show child attributes
Image URL for the tool server
Array of tool definitions
Show child attributes
Tool server updated successfully
Tool server ID
Client UID
Whether the tool server is enabled
Base URL
Tool server identifier
Tool server name
Tool server description
Whether this is an MCP type server
Show child attributes
Tool server definition ID
Image URL
Creation timestamp in milliseconds
Last edit timestamp in milliseconds
Show child attributes