Subversion Edge User Roles API

Use this API to list available administrative roles and edit role membership.

This API is available with Subversion Edge 2.3.0 (and later).
Note: The following examples show request bodies and responses in JSON format, but XML is equally valid.

GET

HTTP method and URL
GET /csvn/api/1/role?format=json
Authentication / Authorization User administrators (ROLE_ADMIN_USERS) and the super user (ROLE_ADMIN)
Response The GET request returns a list of roles.

Example:

PUT

HTTP method and URL
PUT /csvn/api/1/role/2?format=json

Example:

Parameters The role ID, as well as user ID are required – the role ID in the URL path, and the user ID in the request body as a parameter.
userId
Required.
action
Optional. You can set it to either "add" or "remove".
Authentication / Authorization User administrators (ROLE_ADMIN_USERS) and the super user (ROLE_ADMIN)