Toggle Environment Dev Mode
POST
/v1/environments/{id}/dev-modeToggle an environment's dev mode where cache will be disabled for 3 hours.
Request
Path Params
id
string
required
Header Params
Accept
string
required
Example:
application/json
Content-Type
string
required
Example:
application/json
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
data
object
required
id
string
required
type
string
required
attributes
object
required
relationships
object
required
links
object
required
Example
{
"data": {
"id": "string",
"type": "string",
"attributes": {
"title": "string",
"enabled": true,
"hostname": "string",
"ip": "string",
"internalName": "string",
"internalUrl": "string",
"phpVersion": "string",
"phpExtensions": [
"string"
],
"phpWorkers": {
"max": 0,
"nice": 0,
"maxRequests": 0
},
"domains": [
"string"
],
"state": "string",
"storage": {
"used": null,
"total": 0
},
"git": {
"repodef": "string",
"autopull": true,
"branch": "string",
"commit": null,
"last_trigger": "string",
"last_status": true,
"last_message": "string"
},
"location": "string",
"devMode": true,
"apikey": "string",
"isLegacy": true,
"cloudflareLock": true,
"cacheMode": "string",
"phpMemoryLimit": 0,
"htaccessRoot": "string",
"ssh": true,
"sftp": true,
"phpTimezone": "string"
},
"relationships": {
"bolt": {
"data": {
"id": "string",
"type": "string",
"attributes": {
"internalName": "string"
}
}
}
},
"links": {
"self": "string"
}
}
}
Modified at 4 months ago