Update access mode method not available in SDK
@aleksandar-cloudinary is already working on this.
Since May 27, 2022.
Assessment
This issue has not been assessed yet.
Description
Bug report for Cloudinary PHP SDK
Before proceeding, please update to latest version and test if the issue persists
Describe the bug in a sentence or two.
In the documentation or the admin API, it references an API call to modify the access_mode on an asset as described here using the PHP SDK, but I am unable to find that API call (updateResourcesAccessMode) in the PHP SDK.
Issue Type (Can be multiple)
- Build - Can’t install or import the SDK
- Performance - Performance issues
- Behaviour - Functions aren’t working as expected (such as generate URL)
- Documentation - Inconsistency between the docs and behaviour
- Other (Specify)
Steps to reproduce
- Install PHP SDK (I am using v2.7.1 on PHP 8.1.5).
- Try to make a call to
updateResourcesAccessMode($access_mode, $options = []);as described in the above mentioned documentation. - That method does not exist on the
AdminApiobject.
Error screenshots or Stack Trace (if applicable)


Fatal error: Uncaught Error: Call to undefined method Cloudinary\Api\Admin\AdminApi::updateResourcesAccessMode() in <redacted>\cloudinary-flysystem\src\CloudinaryAdapter.php:446
Stack trace:
#0 <redacted>\cloudinary-flysystem\test.php(62): Brandon14\CloudinaryFlysystem\CloudinaryAdapter->setVisibility('sample.jpg', 'private')
#1 {main}
Next League\Flysystem\UnableToSetVisibility: Unable to set visibility for file sample.jpg. Call to undefined method Cloudinary\Api\Admin\AdminApi::updateResourcesAccessMode() in <redacted>\cloud
inary-flysystem\vendor\league\flysystem\src\UnableToSetVisibility.php:33
Stack trace:
#0 <redacted>\cloudinary-flysystem\src\CloudinaryAdapter.php(454): League\Flysystem\UnableToSetVisibility::atLocation('sample.jpg', 'Call to undefin...', Object(Error))
#1 <redacted>\cloudinary-flysystem\test.php(62): Brandon14\CloudinaryFlysystem\CloudinaryAdapter->setVisibility('sample.jpg', 'private')
#2 {main}
thrown in <redacted>\cloudinary-flysystem\vendor\league\flysystem\src\UnableToSetVisibility.php on line 33
Operating System
- Linux
- Windows
- macOS
- All
Environment and Frameworks (fill in the version numbers)
- PHP Cloudinary SDK version - 2.7.1
- PHP Version - 8.1.5
- Framework (Laravel, Symphony, etc) - N/A
Repository
N/A
- Dominant language
- PHP
- Stars
- 402
- Forks
- 151
- Avg merge
- 37m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudinary/cloudinary_php
-
API returns 500 "General Error" when trying to upload an image that is larger than the `chunk_size`Open
Difficulty 4/5 3-5 days Newbie friendliness 32/100
cloudinary/cloudinary_php#412 · 2 comments ·
-
Noticeably reduced performance with version 2May be free again @const-cloudinary claimed this 2095 days ago, and no pull request is open. Open
cloudinary/cloudinary_php#244 · 11 comments · 1 reaction · 1 assignee ·
All issues in cloudinary/cloudinary_php
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
sync-en
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
sync-en
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Перевод устарел
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Old /download.php attachment links: redirect drops the subfolder, nginx.example.conf returns 404OpenBug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day