For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update Package Description

This API is used to update the instance package description

put
Authorizations
AuthorizationstringRequired

Type 'Bearer ' followed by your JWT token. Example: "Bearer eyJhbGciOi..."

Path parameters
package_idstringRequired

Package ID

Body
descriptionstringOptional
ephermeral_diskintegerOptional
flavor_namestringOptional
gpuintegerOptional
idstringOptional
price_per_hoursnumberOptional
price_per_monthnumberOptional
processorstringOptional
ramintegerOptional
regionstringOptional
root_diskintegerOptional
rx_txnumberOptional
statusstringOptional
swap_diskintegerOptional
type_idstringOptional

UserID string gorm:"not null;type:uuid" json:"user_id,omitempty"

usage_limitintegerOptional
vcpuintegerOptional
Responses
200

Successful Response

application/json
codeintegerOptionalExample: 200
dataanyOptional
messagestringOptionalExample: Success
put/core/flavor/instance/update-description/{package_id}
PUT /core/flavor/instance/update-description/{package_id} HTTP/1.1
Host: ai.cloudeka.id/
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 262

{
  "description": "text",
  "ephermeral_disk": 1,
  "flavor_name": "text",
  "gpu": 1,
  "id": "text",
  "price_per_hours": 1,
  "price_per_month": 1,
  "processor": "text",
  "ram": 1,
  "region": "text",
  "root_disk": 1,
  "rx_tx": 1,
  "status": "text",
  "swap_disk": 1,
  "type_id": "text",
  "usage_limit": 1,
  "vcpu": 1
}
200

Successful Response

{
  "code": 200,
  "data": null,
  "message": "Success"
}

Last updated