Skip to content

Commit 1a2da89

Browse files
committed
move update to url path put
1 parent 85d32c3 commit 1a2da89

File tree

1 file changed

+29
-32
lines changed

1 file changed

+29
-32
lines changed

openapi.yaml

Lines changed: 29 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3315,35 +3315,6 @@ paths:
33153315
curl -X GET \
33163316
-H "Authorization Bearer $TOGETHER_API_KEY" \
33173317
https://api.together.ai/v1/clusters
3318-
put:
3319-
tags: ['GPUClusterService']
3320-
summary: Update a GPU Cluster.
3321-
operationId: GPUClusterService_Update
3322-
requestBody:
3323-
content:
3324-
application/json:
3325-
schema:
3326-
$ref: '#/components/schemas/GPUClusterUpdateRequest'
3327-
required: true
3328-
responses:
3329-
"200":
3330-
description: OK
3331-
content:
3332-
application/json:
3333-
schema:
3334-
$ref: '#/components/schemas/GPUClusterUpdateResponse'
3335-
x-codeSamples:
3336-
- lang: TypeScript
3337-
label: Together AI SDK (TypeScript)
3338-
source: |
3339-
client.clusters.create()
3340-
- lang: Shell
3341-
label: cURL
3342-
source: |
3343-
curl -X PUT \
3344-
-H "Authorization Bearer $TOGETHER_API_KEY" \
3345-
--data '{ "cluster_id": "cluster id", "cluster_type": "kubernetes", "num_gpus": 24 }' \
3346-
https://api.together.ai/v1/clusters
33473318
post:
33483319
tags: ['GPUClusterService']
33493320
summary: Create GPU Cluster
@@ -3394,6 +3365,35 @@ paths:
33943365
curl -X GET \
33953366
-H "Authorization Bearer $TOGETHER_API_KEY" \
33963367
https://api.together.ai/v1/clusters/${CLUSTER_ID}
3368+
put:
3369+
tags: ['GPUClusterService']
3370+
summary: Update a GPU Cluster.
3371+
operationId: GPUClusterService_Update
3372+
requestBody:
3373+
content:
3374+
application/json:
3375+
schema:
3376+
$ref: '#/components/schemas/GPUClusterUpdateRequest'
3377+
required: true
3378+
responses:
3379+
"200":
3380+
description: OK
3381+
content:
3382+
application/json:
3383+
schema:
3384+
$ref: '#/components/schemas/GPUClusterUpdateResponse'
3385+
x-codeSamples:
3386+
- lang: TypeScript
3387+
label: Together AI SDK (TypeScript)
3388+
source: |
3389+
client.clusters.create()
3390+
- lang: Shell
3391+
label: cURL
3392+
source: |
3393+
curl -X PUT \
3394+
-H "Authorization Bearer $TOGETHER_API_KEY" \
3395+
--data '{ "cluster_id": "cluster id", "cluster_type": "kubernetes", "num_gpus": 24 }' \
3396+
https://api.together.ai/v1/clusters
33973397
delete:
33983398
tags: ['GPUClusterService']
33993399
summary: Delete GPU cluster by cluster ID
@@ -5769,10 +5769,7 @@ components:
57695769
type: integer
57705770
GPUClusterUpdateRequest:
57715771
type: object
5772-
required: [cluster_id]
57735772
properties:
5774-
cluster_id:
5775-
type: string
57765773
cluster_type:
57775774
enum: [KUBERNETES, SLURM]
57785775
num_gpus:

0 commit comments

Comments
 (0)