Every asset returned by the Elvis API has a field indicating the permissions of the current user for that asset. The permissions mask consists of a string with one character for every permission available in Elvis:
- V = VIEW
- P = VIEW_PREVIEW
- W = VIEW_NON_WATERMARKED (hide watermarks) 1
- U = USE_ORIGINAL
- M = EDIT_METADATA
- E = EDIT
- R = RENAME
- X = MOVE
- C = CREATE
- D = DELETE
1 This is valid for any server mode. When watermarks.enabled=false, W will be always set by the server. For more information about watermarking, seeShowing watermarks on images in Elvis 5.
When a permission is not available, it's position in the string will be replaced with a dash:
Do you have corrections or additional information about this article? Leave a comment! Do you have a question about what is described in this article? Please contact Support.
Please sign in to leave a comment.