Authorization: Bearer ********************
{
"data": {
"attributes": {
"title": "new name",
"ssh": false,
"sshPassword": "newPasswordSuperStrong",
"sftp": false,
"phpMemoryLimit": 256,
"phpTimeZone": "Europe/Rome",
"htaccessRoot": "none",
"cacheMode": "none",
"forceHTTPS": "domain.com",
"forceDomain": {
"https": true,
"domain": "domain.com"
},
"environmentInfoFile": "json",
"cloudflareLock": false,
"phpVersion": "8.2",
"phpExtensions": [85]
}
}
}
curl --location --request PATCH 'https://api.servebolt.io/v1/environments/' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"attributes": {
"title": "new name",
"ssh": false,
"sshPassword": "newPasswordSuperStrong",
"sftp": false,
"phpMemoryLimit": 256,
"phpTimeZone": "Europe/Rome",
"htaccessRoot": "none",
"cacheMode": "none",
"forceHTTPS": "domain.com",
"forceDomain": {
"https": true,
"domain": "domain.com"
},
"environmentInfoFile": "json",
"cloudflareLock": false,
"phpVersion": "8.2",
"phpExtensions": [85]
}
}
}'
{
"data": {
"id": "1803",
"type": "environments",
"attributes": {
"title": "new name",
"enabled": true,
"hostname": "xxx",
"ip": "185.91.65.xxx",
"internalName": "newawe_1803",
"internalUrl": "newawe-1803.xxx",
"phpVersion": "8.2",
"phpExtensions": [
{
"id": 85,
"name": "ffi",
"cli": true,
"web": false
}
],
"phpWorkers": {
"max": 128,
"nice": 18,
"maxRequests": 500
},
"domains": [],
"state": "development",
"storage": {
"used": null,
"total": 4096
},
"location": "Oslo, NO",
"devMode": false,
"apikey": "xxx",
"isLegacy": false,
"cloudflareLock": false,
"cacheMode": "none",
"environmentInfoFile": "json",
"forceDomain": {
"https": true,
"domain": "domain.com"
},
"forceHTTPS": "domain.com",
"phpMemoryLimit": 256,
"htaccessRoot": "none",
"ssh": false,
"sftp": false,
"phpTimezone": "UTC"
},
"relationships": {
"bolt": {
"data": {
"id": "8988",
"type": "bolts",
"attributes": {
"internalName": "wefwef_8988"
}
}
}
},
"links": {
"self": "https://xxx/v1/environments/1803"
}
}
}