Requests API

This page provides a reference of the available operations in the Requests API.

All operations must be prefixed with the correct datacenter URL for your tenant. All requests must be authenticated via an API key.

The following operations are available:

Get requests

Returns an array of user requests.

Request

GET {datacenter}/requests

Response

200 - OK - Success response

The operation returns an array of JSON objects. Each object corresponds to one user request.

Examples

Get request

Returns the request with the specified ID.

Request

GET {datacenter}/requests/{id}

Response
200 - OK - Success response

The operation returns the request with the specified ID as a JSON object.

Example

Approve request

Approves a request sent by a user. After approval, the request has the status "Open".

Warning: The request is approved even if it was denied before, overriding your previous decision. Make sure that this is what you want before sending the request.

The change is processed asynchronously. If you call Get request immediately afterwards, the response may still show the previous status.

Request

PUT {datacenter}/requests/{id}

Response
204 - No Content - Success response

The operation returns an empty response.

Deny request

Denies a request sent by a user.

Warning: The request is denied even if it was approved before, overriding your previous decision. Make sure that this is what you want before sending the request.

The change is processed asynchronously. If you call Get request immediately afterwards, the response may still show the previous status.

Request

DELETE {datacenter}/requests/{id}

Response
204 - No Content - Success response

The operation returns an empty response.