Skip to main content
PUT
/
v1
/
containers
/
{id}
update workload
curl --request PUT \
  --url https://console.gmicloud.ai/api/v1/containers/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "envs": [
    {
      "name": "access_token",
      "value": "kalsk113=="
    }
  ],
  "name": "LLM training",
  "ports": [],
  "storages": [
    {
      "containerPath": "/workspace",
      "id": "550e8400-e29b-41d4-a716-446655440000"
    }
  ],
  "templateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

Body

application/json
name
string
required
Maximum length: 255
templateId
string<uuid>
required

template id

envs
object[]
Example:
[
{
"name": "access_token",
"value": "kalsk113=="
}
]
ports
object[]
storages
object[]
Example:
[
{
"containerPath": "/workspace",
"id": "550e8400-e29b-41d4-a716-446655440000"
}
]

Response

successful

id
string<uuid>