Reconfigure a Server

Creates a task that reconfigures the specified server.

Requires the servers-update permission.

Arguments
  • sftp
    bool

    A boolean where True means that SFTP functionality will be turned on for this server and False will completely disable SFTP.

Returns

Returns a Task Descriptor Object, otherwise returns an Error.

POST /v1/infrastructure/servers/{ID}/tasks

Example Request
$ curl https://api.cycle.io/v1/infrastructure/servers/5dd333ee4146380001d9e3b5/tasks \
-H
"Authorization: Bearer API_KEY"
\
-H
"X-Hub-Id: HUB_ID"
\
-H "Content-Type: application/json"
-d '{"action":"reconfigure.features","contents":{"sftp":true}}'
-X POST
Example Response
{
"data": {
"action": "reconfigure.features",
"job_id": "5d01b9b3db2ab00001508cd8"
}
}