Przejdź do głównej zawartości

Pobierz skrypt automatyczny

GET
/api/v1/automaticScripts/{id}
curl --request GET \
--url https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/v1/automaticScripts/1 \
--header 'Authorization: Bearer <token>'

Zwraca pełne dane skryptu automatycznego, w tym kod i ustawienia wyzwalacza.

id
wymagane
integer format: int64

Id of the automatic script.

Success

object
id
integer format: int64
name
string
nullable
body
string
nullable
groupId
integer format: int64
priority
integer format: int64
delaySeconds
integer format: int64
inputDataSchema
nullable
inputUiSchema

(absent ⇒ property omitted)

nullable
inputDataDefaultsScriptId

(absent ⇒ property omitted)

integer format: int64
nullable
type
string
Dozwolone wartości: AutomaticScript AutomaticAction
updatedAt
string format: date-time
nullable

Not Found

object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties