Skip to main content
PATCH
يحدّث دورًا مخصصًا مملوكًا لهذا الحساب، على مضيف Management API (‏api.scanova.io)، مع المصادقة باستخدام مفتاح Management API الخام الخاص بك.
integer
مطلوب
معرّف id الخاص بالدور.
يدعم كلًا من PUT (استبدال كامل) وPATCH (تحديث جزئي)، ويقبل كلاهما نفس حقلي name/permissions الموثّقين في إنشاء دور مخصص.

لا يمكن تعديل الأدوار النظامية هنا

يمكن الكتابة عبر نقطة النهاية هذه فقط للأدوار المخصصة الخاصة بالحساب (‏is_custom: true‏) — أي pk يخص دورًا نظاميًا (أو دورًا مخصصًا خاصًا بحساب آخر) يُعيد 404، تمامًا كما لو لم يكن الدور موجودًا على الإطلاق.

ذات صلة

التفويضات

Authorization
string
header
مطلوب

Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: 401f7ac837da42b97f613d789819ff93537bee6a. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. api.scanova.io) — the same key sent to the regular API host will not authenticate.

معلمات المسار

pk
integer
مطلوب

الجسم

application/json
name
string
permissions
integer[]

الاستجابة

Role updated.