PUT
/
v1
/
containers
/
{id}
update workload
curl --request PUT \
  --url https://console.gmicloud.com/api/v1/containers/{id} \
  --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"
}

Path Parameters

id
string<uuid>
required

Body

application/json

Response

successful

The response is of type object.