- Introduction
- Auth
- Bolts
- Environments
- Git
- Domains
- Logs
- List Environments
- Create Environment
- Get Environment
- Update Environment
- Delete Environment
- Purge Environment Cache
- List Environment Cronjobs
- Get Environment Statistics
- Get Environment Available Settings
- Get Environment PHP Versions
- Get Environment Usage
- Get Environment SSH Accesses
- Create Environment SSH Access
- Remove Environment SSH Access
- List Environment Databases
- Toggle Environment Dev Mode
- Environment Install Wordpress
- Environment Optimize Wordpress
- Locations
- Databases
- Cronjobs
- SSH Keys
- Certificates
- Billing
- Profile
Update Bolt Subscription
POST
https://api.servebolt.io/v1/bolts/{boltId}/update-subscription
Internal
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
boltId
integer
required
Header Params
Accept
string
required
Example:
application/json
Content-Type
string
required
Example:
application/json
Body Params application/json
subscriptionItems
array [object {2}]
required
itemPriceId
string
required
quantity
integer
required
Example
{
"subscriptionItems": [
{
"itemPriceId": "2022-bolt-Business-EUR-Monthly",
"quantity": 1
},
{
"itemPriceId": "2022-Increased-PHP-Memory-Limit-EUR-Monthly",
"quantity": 1
},
{
"itemPriceId": "2022-Extra-Production-Environment-2-EUR-Monthly",
"quantity": 25
},
{
"itemPriceId": "2022-2-Extra-Storage-EUR-Monthly",
"quantity": 60
},
{
"itemPriceId": "2023-Extra-Dynamic-Requests-EUR-Monthly",
"quantity": 120
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.servebolt.io/v1/bolts//update-subscription' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"subscriptionItems": [
{
"itemPriceId": "2022-bolt-Business-EUR-Monthly",
"quantity": 1
},
{
"itemPriceId": "2022-Increased-PHP-Memory-Limit-EUR-Monthly",
"quantity": 1
},
{
"itemPriceId": "2022-Extra-Production-Environment-2-EUR-Monthly",
"quantity": 25
},
{
"itemPriceId": "2022-2-Extra-Storage-EUR-Monthly",
"quantity": 60
},
{
"itemPriceId": "2023-Extra-Dynamic-Requests-EUR-Monthly",
"quantity": 120
}
]
}'
Responses
🟢200OK
application/json
Body
array[string]
optional
Example
[]
Modified at 2024-05-29 10:36:42