EndpointService
Update an endpoint
Changed onUpdates mutable endpoint fields such as its endpoint string, visibility, or deployment traffic split. Use updateMask to select fields explicitly and etag in the request body for optimistic concurrency.
patch/v2/projects/{projectId}/endpoints/{id}
Request
- Base URLhttps://api.together.ai
- URLhttps://api.together.ai/v2/projects/{projectId}/endpoints/{id}
- AuthHTTP bearer
Path parameters
projectIdstring required
Project identifier.
idstring required
Endpoint identifier.
Query parameters
updateMaskstring
Fields to update. If not set, the fields populated are updated.
Request body
Response
OK
Example response
{
"deployments": [
{
"autoscaling": {
"scaleUp": {
"policies": [
{
"type": "SCALING_POLICY_TYPE_PERCENT",
"value": 25,
"periodSeconds": 60
},
{
"type": "SCALING_POLICY_TYPE_PODS",
"value": 10,
"periodSeconds": 60
}
],
"selectPolicy": "SCALING_POLICY_SELECT_MIN"
},
"scaleDown": {
"policies": [
{
"type": "SCALING_POLICY_TYPE_PERCENT",
"value": 25,
"periodSeconds": 60
},
{
"type": "SCALING_POLICY_TYPE_PODS",
"value": 10,
"periodSeconds": 60
}
],
"selectPolicy": "SCALING_POLICY_SELECT_MIN"
}
}
}
]
}Changes
- info
endpoint added
- info