Replace a manager's roles

PUT /api/v1/managers/{id}/roles prm_roles_manage

اعرض الصفحة بصيغة Markdown

Replaces the whole set. A caller may only grant roles whose permissions are a subset of their own, so this cannot be used to escalate.

This takes effect on every API token that manager holds, immediately and silently. A token's authority is its owner's live permissions intersected with its own scope, so removing a role here shrinks every integration running as that person with no notification and no change to the token record.

نظرة سريعة

المصادقة
رمز موظّف أو جلسة
تتطلب صلاحية
prm_roles_manage Manage roles & permissions
حد المعدل
t_mutate

المعاملات

المعامل الوصف
idمطلوب path · integer Manager id.
role_idsمطلوب body · array The complete new set of role ids.

الأخطاء

الرمز متى تُرجَع
ERR_FORBIDDEN403 the caller holds an API token — this route refuses machine credentials

جرّبه على شبكتك.

50 مشترك لمدة 7 أيام، من غير ما تدفع حاجة.