Update an Authorization

Updates an authorization by id.

Method

PUT /authorization/{id}

Parameters

Path Parameters

Name Description
id The id of the authorization to be updated.

Request Body

A JSON object with the following properties:

Name Value Description
permissions Integer An integer holding the permissions provided by this authorization.
userId String The id of the user this authorization has been created for. The value "*" represents a global authorization ranging over all users.
groupId String The id of the group this authorization has been created for.
resourceType Integer An integer representing the resource type. See the User Guide for a list of integer representations of resource types.
resourceId String The resource Id. The value "*" represents an authorization ranging over all instances of a resource.

Result

This method returns no content.

Response Codes

Code Media type Description
204 Request successful.
403 application/json The authenticated user is unauthorized to update this resource. See the Introduction for the error response format.
404 application/json The authorization with the requested Id cannot be found.
500 application/json The authorization could not be updated due to an internal server error. See the Introduction for the error response format.

Example

Request

PUT /authorization/anAuthorizationId

Request Body:

{"permissions": 16,
 "userId": "*",
 "groupId": null,
 "resourceType": 1,
 "resourceId": "*"}

Response

Status 204. No content.

On this Page: