Langsung ke konten utama
POST
/
community-scripts
Kirim Skrip Komunitas
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

API Altostrat SDX menggunakan token JWT Bearer untuk autentikasi. Dapatkan token melalui API Autentikasi dan sertakan dalam header Otorisasi sebagai 'Bearer {token}'.

Body

application/json
github_url
string<uri>
required

URL mentah langsung ke file .rsc di GitHub.

Example:

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

readme_url
string<uri>

URL mentah langsung opsional ke file README markdown yang sesuai.

Example:

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

Response

Skrip berhasil dikirim dan sedang diproses.