Vai al contenuto principale
POST
/
community-scripts
Invia uno Script alla Community
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

L'API SDX di Altostrat utilizza token Bearer JWT per l'autenticazione. Ottieni un token tramite l'API di autenticazione e includilo nell'header Authorization come 'Bearer {token}'.

Body

application/json
github_url
string<uri>
required

L'URL raw diretto al file .rsc su GitHub.

Example:

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

readme_url
string<uri>

Un URL raw diretto opzionale a un file README markdown corrispondente.

Example:

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

Response

Lo script è stato inviato con successo ed è in fase di elaborazione.