| | 1 | = zooomr.photos.setPerms = |
|---|
| | 2 | Set permissions for a photo. |
|---|
| | 3 | |
|---|
| | 4 | == Authentication == |
|---|
| | 5 | |
|---|
| | 6 | This method requires authentication with 'write' permission. |
|---|
| | 7 | |
|---|
| | 8 | Note: This method requires an HTTP POST request. |
|---|
| | 9 | |
|---|
| | 10 | === Arguments === |
|---|
| | 11 | |
|---|
| | 12 | api_key (Required) |
|---|
| | 13 | Your API application key. |
|---|
| | 14 | photo_id (Required) |
|---|
| | 15 | The id of the photo to set permissions for. |
|---|
| | 16 | is_public (Required) |
|---|
| | 17 | 1 to set the photo to public, 0 to set it to private. |
|---|
| | 18 | is_friend (Required) |
|---|
| | 19 | 1 to make the photo visible to friends when private, 0 to not. |
|---|
| | 20 | is_family (Required) |
|---|
| | 21 | 1 to make the photo visible to family when private, 0 to not. |
|---|
| | 22 | perm_comment (Required) |
|---|
| | 23 | who can add comments to the photo and it's notes. one of: |
|---|
| | 24 | 0: nobody |
|---|
| | 25 | 1: friends & family |
|---|
| | 26 | 2: contacts |
|---|
| | 27 | 3: everybody |
|---|
| | 28 | perm_addmeta (Required) |
|---|
| | 29 | who can add notes and tags to the photo. one of: |
|---|
| | 30 | 0: nobody / just the owner |
|---|
| | 31 | 1: friends & family |
|---|
| | 32 | 2: contacts |
|---|
| | 33 | 3: everybody |
|---|
| | 34 | |
|---|
| | 35 | === Example Response === |
|---|
| | 36 | {{{ |
|---|
| | 37 | {"stat": "ok"} |
|---|
| | 38 | }}} |