/api/v1/admin/settings (PUT)
PUT
/api/v1/admin/settings
const url = 'https://example.com/api/v1/admin/settings';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","memoryMb":1,"cpuPercent":1,"diskMb":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/admin/settings \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "memoryMb": 1, "cpuPercent": 1, "diskMb": 1 }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
string
memoryMb
required
integer | string format: int32
cpuPercent
required
integer | string format: int32
diskMb
required
integer | string format: int32
Example generated
{ "name": "example", "memoryMb": 1, "cpuPercent": 1, "diskMb": 1}Responses
Section titled “Responses”OK