Pobierz listę skryptów automatycznych
GET
/api/v1/automaticScripts
const url = 'https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/v1/automaticScripts?offset=0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/v1/automaticScripts?offset=0' \ --header 'Authorization: Bearer <token>'Zwraca stronicowaną listę skryptów automatycznych wraz z kodem i konfiguracją – odpowiednik listy akcji automatycznych w BaseLinkerze.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry zapytania
Dział zatytułowany „Parametry zapytania”offset
integer format: int32
Number of automatic scripts to skip.
limit
integer format: int32
Number of automatic scripts to take.
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Array<object>
object
id
integer format: int64
name
string
body
string
groupId
integer format: int64
groupName
string
priority
integer format: int64
delaySeconds
integer format: int64
inputDataSchema
type
string
updatedAt
string format: date-time
lastRun
string format: date-time
Array<object>
object
id
integer format: int64
name
string
body
string
groupId
integer format: int64
groupName
string
priority
integer format: int64
delaySeconds
integer format: int64
inputDataSchema
type
string
updatedAt
string format: date-time
lastRun
string format: date-time
Example
[ { "type": "AutomaticScript" }]Array<object>
object
id
integer format: int64
name
string
body
string
groupId
integer format: int64
groupName
string
priority
integer format: int64
delaySeconds
integer format: int64
inputDataSchema
type
string
updatedAt
string format: date-time
lastRun
string format: date-time
Example
[ { "type": "AutomaticScript" }]
