Skip to main content
DELETE
يحذف دورًا مخصصًا مملوكًا لهذا الحساب، على مضيف Management API (‏api.scanova.io)، مع المصادقة باستخدام مفتاح Management API الخام الخاص بك.
integer
مطلوب
معرّف id الخاص بالدور.
عملية ناجحة تعيد 204 No Content.

أعد تخصيص أعضاء الفريق أولًا

إذا كان الدور لا يزال مُسندًا إلى مستخدم مشارك، فإن هذا الاستدعاء يعيد 400 واضحًا (بدلًا من خطأ تكامل قاعدة بيانات خام)، يطلب إعادة تخصيص أعضاء الفريق هؤلاء إلى دور آخر قبل الحذف. كما هو الحال مع التحديث، أي 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
مطلوب

الاستجابة

Role deleted.