This version of the API is deprecated.

See collection.list for the current version of this method.

corpus.getPermissions

Gives you a list to all corpus ids that you have read or write permission to.

Request Parameters

(none)

Response Parameters

corpusIdint
The unique corpus id.
permissionString

The permission you have to the unique corpusId. This can have the values of "read" or "write".

Code Examples

JSON


//Request
{"method":"corpus.getPermissions","params":[],"id":0}


//Response
{"id":0,"result":[{"corpusId":40,"permission":"read"},{"corpusId":45,"permission":"write"}]}