الانتقال إلى المحتوى الرئيسي
POST
/
community-scripts
تقديم اسكربت للمجتمع
curl --request POST \
  --url https://api.altostrat.io/community-scripts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "github_url": "https://raw.githubusercontent.com/user/repo/main/path/to/script.rsc",
  "readme_url": "https://raw.githubusercontent.com/user/repo/main/path/to/README.md"
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

تستخدم واجهة برمجة تطبيقات Altostrat SDX رموز Bearer من نوع JWT للمصادقة. احصل على رمز عبر واجهة برمجة تطبيقات المصادقة وأدرجه في ترويسة Authorization كـ 'Bearer {token}'.

Body

application/json
github_url
string<uri>
required

الرابط المباشر الخام لملف .rsc على GitHub.

Example:

"https://raw.githubusercontent.com/user/repo/main/path/to/script.rsc"

readme_url
string<uri>

رابط مباشر خام اختياري لملف README بصيغة markdown.

Example:

"https://raw.githubusercontent.com/user/repo/main/path/to/README.md"

Response

تم تقديم الاسكربت بنجاح وتتم معالجته.