PATCH
/
endpoints
/
{endpointId}
from together import Together
import os

client = Together(
api_key=os.environ.get("TOGETHER_API_KEY"),
)

endpoint = client.endpoints.update(
endpoint_id="endpoint-id",
state="STOPPED"
)

print(endpoint)
{
  "object": "endpoint",
  "id": "endpoint-d23901de-ef8f-44bf-b3e7-de9c1ca8f2d7",
  "name": "devuser/meta-llama/Llama-3-8b-chat-hf-a32b82a1",
  "display_name": "My Llama3 70b endpoint",
  "model": "meta-llama/Llama-3-8b-chat-hf",
  "hardware": "1x_nvidia_a100_80gb_sxm",
  "type": "dedicated",
  "owner": "devuser",
  "state": "STARTED",
  "autoscaling": {
    "min_replicas": 2,
    "max_replicas": 5
  },
  "created_at": "2025-02-04T10:43:55.405Z"
}

Authorizations

Authorization
string
header
default:default
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

endpointId
string
required

The ID of the endpoint to update

Body

application/json

Response

200
application/json

200

Details about a dedicated endpoint deployment