Action request and response

RESTful API for IBM Spectrum Connect uses action requests to perform complimentary actions on the requested objects, which are out of scope of other request types.

You can initiate an action by issuing the POST command (on a URI). For example, POST /api/v1/disks/82/phasein starts a phase-in procedure for disk 82.

The response to the request is OK, followed by the task ID, as illustrated below. The task ID can be used in a query request to monitor the task progress, see Query request and response.
OK
{
    "task id": "04fc6120-60ae-4182-baa9-687d6ae96ffe"
}
If the request fails, an error message is displayed, carrying a status code with a reason for the failed request.