I’m using FME Server 2017.1.1.1 and REST API to create a repository and publish workspace into it. This is fairly straightforward. Once done, I’d like to share that repository with other users already existing on the server. Is there a way to do it via REST API? I wasn’t able to find it in API documentation.
Solved
Share a FME Server repository via REST API (v3)
Best answer by todd_davis
Good question...because it is hard to find and I don't know why, but the logic seems weird (I may have it wrong)
POST /security/categories/< category >/resources/< resource >/roles
Example
Category: Repositories
Resource: Dashboards
Roles: fmeguest
That give full permissions to the role for that repository. But then I if you don't want full access it is:
PUT /security/categories/< category >/resources/< resource >/roles/< role >
using one/some of the following permissions
"REPOSITORY_DOWNLOAD", "REPOSITORY_READ", "REPOSITORY_WRITE", "REPOSITORY_EXECUTE", "REPOSITORY_DELETE
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.