انتقل إلى المحتوى

الصلاحيات الأساسية

صلاحيات المفتاح محددة حسب المنطقة، وكل منها على مستوى واحد من ثلاثة. المفتاح الجديد يحمل none في كل مكان — لا يمكنه فعل أي شيء حتى يعطيه شخص ما شيئًا على الصفحة API للمفاتيح.

المستوى يسمح به
none لا شيء في هذه المنطقة — كل طلب يتم رفضه بـ 403
view القراءة: GET
edit القراءة والتعديل: GET, POST, PUT, PATCH, DELETE
Area (scopes key) Shown in the web app as Controls
courses Courses /api/v1/agent/courses/
chapters Units (called chapters in the API) /api/v1/agent/courses/{id}/chapters/
lessons Lessons (including quizzes and tasks) (also each quiz and task) …/chapters/{id}/lessons/
org_settings Organization settings /api/v1/agent/org-settings/, record of changes, join code
pricing Course prices …/courses/{id}/price/, refund policy
payments Payments and plan /api/v1/agent/payments/, plans, storage purchase links
media Media files …/courses/{id}/uploads/, images, documents
storefront Storefront and branding brand picture, address, landing page, hero image
promotions Promotions coupons and partners
sales Sales and analytics /api/v1/agent/analytics/… (read)
cohorts Learners, groups and join codes learners, groups, access codes, roster imports
gradebook Gradebook, marking and rubrics grades, review, AI marking, rubrics
certificates Certificates settings, preview, cancel
discussions Discussion boards settings and checking posts

مجموعتان جاهزتان جاهزتان للبيع تضبطان العديد من المناطق في وقت واحد: بناء وبيع دورات (كل شيء لصنع، تحديد السعر وتشغيل دورة، مع view على المبيعات) و تشغيل الدورات (edit على كل منطقة). لا يمنح أي منهما مفتاحًا القدرة على سحب الأموال من مؤسستك.

GET /api/v1/agent/whoami/ لا يحتاج إلى صلاحية ويُرجع مستويات المفتاح الحالي.

يتم التحقق من الصلاحيات في كل طلب. يمكن لأي شخص رفعها، خفضها أو إزالتها في أي وقت والطلب التالي يرى التغيير. أي صلاحية غير معروفة أو مكتوبة بشكل خاطئ تُعامل دائمًا كـ none.