Update Service
Update an existing service.
/api/v1/services/Authentication
Syllable-API-KeyrequiredSend Syllable-API-Key in the header.
Need a credential? Create or manage an API token in the Syllable Console.
Parameters
This endpoint has no declared parameters.
Request body
application/json
body
ServiceUpdateRequest
required
6 fields
namestringrequiredThe name of the service
descriptionstringrequiredThe description of the service
auth_typeenum<string> | nulloptionalThe type of authentication to use for the service's tools
["basic","bearer","custom_headers","oauth2"]auth_valuesunspecified | nulloptionalThe values to use for the authentication, as a dict. Should contain "username" and "password" keys if auth type is basic, "token" key if auth type is bearer, arbitrary header keys if auth type is custom_headers. or "client_id", "client_secret", and "auth_url" keys if auth type is oauth2. On an update, leave a value for a given key null and the value in the database will not be updated. (If a key is omitted entirely, any existing value for that key will be removed.)
idintegerrequiredThe internal ID of the service
last_updated_commentsstring | nulloptionalFree text providing comment about what was updated
Request example
{
"name": "string",
"description": "string",
"auth_type": "string",
"auth_values": "string",
"id": 0,
"last_updated_comments": "string"
}Responses
200Successful Response
application/json
response
ServiceResponse
required
9 fields
idintegerrequiredThe internal ID of the service
namestringrequiredThe name of the service
descriptionstringrequiredThe description of the service
auth_typeenum<string> | nulloptionalThe type of authentication to use for the service's tools
["basic","bearer","custom_headers","oauth2"]auth_value_keysstring[] | nulloptionalAuth value keys (values omitted for security)
Item schema
itemsstringrequiredlast_updated_commentsstring | nulloptionalFree text providing comment about what was updated
last_updatedstring (date-time)requiredThe timestamp of the most recent update to the service
last_updated_bystringrequiredThe email of the user who last updated the service
toolsstring[]requiredNames of tools that belong to the service
Item schema
itemsstringrequiredResponse example
{
"id": 0,
"name": "string",
"description": "string",
"auth_type": "string",
"auth_value_keys": "string",
"last_updated_comments": "string",
"last_updated": "string",
"last_updated_by": "string",
"tools": [
"string"
]
}422Validation Error
application/json
response
HTTPValidationError
required
1 field
detailValidationError[]optionalItem schema
itemsValidationErrorrequired3 fields
locstring | integer[]requiredItem schema
itemsstring | integerrequired2 options
Option 1stringrequiredOption 2integerrequiredmsgstringrequiredtypestringrequiredResponse example
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
