Library Entities Permissions

/api/repositories/{repository}/library/entities/permissions
Parameter Type Purpose
repository string The name of the Repository

Get

GET /api/repositories/(string: repository)/library/entities/permissions

Gets a list of create and edit permissions for the given user on all the library entities

GET /api/repositories/jupiter/library/entities/permissions HTTP/1.1
Accept: application/json
Response Code Reason
200 No error
500 Server error

The response will be a Standard Response, with a list of the create and edit permissions for all the library entities. The value of CREATE field will be either 1 or 0 depending on whether the user can create library entities within a given repository. EDIT field contains an array of edit permissions, where each item has two fields - LIBRARY and PERMISSION.

LIBRARY field denotes the ID of the library entity. PERMISSION field indicates whether the user has edit permission on that particular library entity. PERMISSION field will be either 0 or 1.

{
    "CREATE": "1",
    "EDIT": [
            {
                "LIBRARY": "1",
                "PERMISSION": "1"
            },
            {
                "LIBRARY": "2",
                "PERMISSION": "0"
            }
        ]
}