API
Container registry
Update registry plan

Update a Container Registry Plan

  • Name
    put
    Type
    /v1/registry/:name/subscription
    Description

    Send a PUT request to update a container registry subscription.

Request

Required Attributes

  • Name
    subscription
    Type
    string ('starter' | 'basic' | 'professional)
    Description

    The slug of the subscription plan.

Example

curl -X PUT "https://api.simplystack.com/v1/registry/personal-registry/subscription" \
  -H "Content-Type: application/json" \
  -H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0" \
  -d '{"subscription": "basic"}'

Response

Attributes

See container registry model.

Example

json
{
  "registry": {
    "name": "personal-registry",
    "created_at": "2023-09-26T07:24:49.760470Z",
    "storage_usage": 0,
    "subscription": {
      "slug": "basic",
      "name": "Basic",
      "storage": 107374182400,
      "bandwidth": 107374182400,
      "available": true,
      "repositories": 5,
      "price_hourly": 0.028,
      "price_monthly": 20.0
    }
  }
}