PUT
/
api
/
v1
/
services
import os
from syllable_sdk import SyllableSDK


with SyllableSDK(
    api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:

    res = ss_client.services.update(request={
        "name": "Weather tools",
        "description": "Service containing tools for fetching weather information",
        "id": 1,
        "last_updated_comments": "Updated description to correct typo",
    })

    # Handle response
    print(res)
{
  "name": "Weather tools",
  "description": "Service containing tools for fetching weather information",
  "id": 1,
  "last_updated_comments": "Updated description to correct typo",
  "last_updated": "2024-01-01T12:00:00Z",
  "last_updated_by": "user@email.com",
  "tools": [
    "hangup",
    "summary"
  ]
}

Authorizations

Syllable-API-Key
string
header
required

Body

application/json

Request model to update an existing service.

Response

200
application/json

Successful Response

Response model for service operations. A service is a collection of tools.