DeploymentService
Update a deployment
Changed onUpdates mutable deployment fields such as its model, configuration, autoscaling bounds, or LoRA support. Changes that affect serving may trigger asynchronous reprovisioning.
patch/v2/projects/{projectId}/endpoints/{endpointId}/deployments/{id}
Request
- Base URLhttps://api.together.ai
- URLhttps://api.together.ai/v2/projects/{projectId}/endpoints/{endpointId}/deployments/{id}
- AuthHTTP bearer
Path parameters
projectIdstring required
Project identifier.
endpointIdstring required
Endpoint identifier.
idstring required
Deployment identifier.
Query parameters
updateMaskstring
Fields to update. If not set, the fields populated on deployment are updated.
Request body
Example request
{
"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"
}
}
}Response
OK
Example response
{
"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