User Resource Options

The /user resource supports two custom OPTIONS requests, one for the resource as such and one for individual user instances. The OPTIONS request allows checking for the set of available operations that the currently authenticated user can perform on the /user resource. If the user can perform an operation or not may depend on various things, including the user’s authorizations to interact with this resource and the internal configuration of the process engine.

Method

OPTIONS /user for available interactions on resource

OPTIONS /user/{id} for available interactions on resource instance

Result

A JSON object with a single property named links, providing a list of resource links. Each link has the following properties

Name Type Description
method String The HTTP method to use for the interaction.
href String The interaction URL.
rel String The relation of the interaction (i.e., a symbolic name representing the nature of the interaction). Examples: create, delete ...

Response Codes

Code Media type Description
200 application/json Request successful.

Example 1

Request

OPTIONS /user

Response

Status 200.

 {
  "links": [
    {
      "method": "GET",
      "href": "http://localhost:8080/engine-rest/user",
      "rel": "list"
    },
    {
      "method": "GET",
      "href": "http://localhost:8080/engine-rest/user/count",
      "rel": "count"
    },
    {
      "method": "POST",
      "href": "http://localhost:8080/engine-rest/user/create",
      "rel": "create"
    }
  ]
}

Example 2

Request

OPTIONS /user/peter

Response

Status 200.

{
  "links": [
    {
      "method": "GET",
      "href": "http://localhost:8080/engine-rest/user/peter/profile",
      "rel": "self"
    },
    {
      "method": "DELETE",
      "href": "http://localhost:8080/engine-rest/user/peter",
      "rel": "delete"
    },
    {
      "method": "PUT",
      "href": "http://localhost:8080/engine-rest/user/peter/profile",
      "rel": "update"
    }
  ]
}

On this Page: