KindeK
Kinde8mo ago
3 replies
Masini

"Permissions parameter is required" when updating Role Permissions

I am invoking this endpoint of the Kinde Management API to update the permissions of particular Role:

https://docs.kinde.com/kinde-apis/management/#tag/roles/patch/api/v1/roles/{role_id}/permissions

However, the following error object is being returned:

Error: [{"code":"PERMISSIONS_REQUIRED","message":"Permissions parameter is required"}]

This is the body of my PATCH request:

{"permissions":[{"id":"{UUID1}"},{"id":"{UUID2}"}]}

Can someone tell me what am I doing wrong?
Kinde docs
The management API is for managing your Kinde account. Most things that can be done via the Kinde admin UI can be done with this API
Was this page helpful?