Hello,
I’m trying to script some stuff up around layout permissions, and I was attempting to use the “Update Layout Permissions” PUT option listed in the API Documentation, instead of using the larger “Update a Layout” PUT which also includes some permissions settings.
I’m reading in the current Site ID values that have permissions just to compare, and that’s working fine, but when I feed my JSON back to the API endpoint listed in the documentation, /api/library/layouts/{id}/permissions I’m receiving an error of “WARN o.s.w.s.PageNotFound - No mapping for PUT /api/library/layouts/996/permissions”
For the info below, I was just reading in the current layout 996 Site ID permissions, appending the values to a JSON object, and then feeding that back to the API just to make sure things were going work, but I’m see:
{“success”:false,“msg”:“Unable to find api endpoint PUT /api/library/layouts/996/permissions”}
<bound method Response.json of <Response [404]>>
layout 996 perms: {‘instanceTypeLayout’: {‘permissions’: {‘resourcePermissions’: {‘sites’: [{‘id’: 2}, {‘id’: 10}, {‘id’: 13}, {‘id’: 7}, {‘id’: 9}, {‘id’: 8}]}}}}
Does the /api/library/layouts/{id}/permissions no longer exist or am I maybe missing some typo? This is in version 7.0.7 of Morpheus