Update MCP server
curl --request PATCH \
--url https://paradigm.lighton.ai/api/v3/mcp/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"url": "<string>",
"credentials": "<string>",
"enabled": true,
"authorized_company_id": 123,
"authorized_group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/mcp/{id}"
payload = {
"name": "<string>",
"url": "<string>",
"credentials": "<string>",
"enabled": True,
"authorized_company_id": 123,
"authorized_group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
url: '<string>',
credentials: '<string>',
enabled: true,
authorized_company_id: 123,
authorized_group_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://paradigm.lighton.ai/api/v3/mcp/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"authentication_method": "<string>",
"has_credentials": true,
"enabled": true,
"availability_scope": "<string>",
"is_global": true,
"object": "mcp_server",
"url": "<string>",
"company_id": 123,
"group_id": 123
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}MCP
Update MCP server
Update an existing MCP server. All fields are optional.
authentication_method determines how the server authenticates requests. Possible values:
none: no authentication requiredurl: credentials are appended to theurlas theapiKeyquery parameterbearer_token: credentials are sent as a Bearer token in the Authorization header (provide the token in thecredentialsfield)
PATCH
/
api
/
v3
/
mcp
/
{id}
Update MCP server
curl --request PATCH \
--url https://paradigm.lighton.ai/api/v3/mcp/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"url": "<string>",
"credentials": "<string>",
"enabled": true,
"authorized_company_id": 123,
"authorized_group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://paradigm.lighton.ai/api/v3/mcp/{id}"
payload = {
"name": "<string>",
"url": "<string>",
"credentials": "<string>",
"enabled": True,
"authorized_company_id": 123,
"authorized_group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
url: '<string>',
credentials: '<string>',
enabled: true,
authorized_company_id: 123,
authorized_group_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://paradigm.lighton.ai/api/v3/mcp/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"authentication_method": "<string>",
"has_credentials": true,
"enabled": true,
"availability_scope": "<string>",
"is_global": true,
"object": "mcp_server",
"url": "<string>",
"company_id": 123,
"group_id": 123
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
none- noneurl- urlbearer_token- bearer_token
Available options:
none, url, bearer_token all_companies- all_companiesselected_company- selected_companyselected_companies- selected_companies
Available options:
all_companies, selected_company, selected_companies