Library Entities Permissions ============================ .. code-block:: http /api/repositories/{repository}/library/entities/permissions .. csv-table:: :header: Parameter, Type, Purpose :widths: 20, 20, 60 :stub-columns: 1 repository, string, The name of the :doc:`repository` Get ~~~ .. http:get:: /api/repositories/(string:repository)/library/entities/permissions :synopsis: Get create and edit permissions for all library entitities Gets a list of create and edit permissions for the given user on all the library entities .. code-block:: http GET /api/repositories/jupiter/library/entities/permissions HTTP/1.1 Accept: application/json .. csv-table:: :header: Response Code, Reason :widths: 25, 75 200, No error 500, Server error The response will be a :doc:`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`. .. code-block:: json { "CREATE": "1", "EDIT": [ { "LIBRARY": "1", "PERMISSION": "1" }, { "LIBRARY": "2", "PERMISSION": "0" } ] }