Pobierz skrypt automatyczny
GET
/api/v1/automaticScripts/{id}
const url = 'https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/v1/automaticScripts/1';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/1 \ --header 'Authorization: Bearer <token>'Zwraca pełne dane skryptu automatycznego, w tym kod i ustawienia wyzwalacza.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”id
wymagane
integer format: int64
Id of the automatic script.
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
object
id
integer format: int64
name
string
body
string
groupId
integer format: int64
priority
integer format: int64
delaySeconds
integer format: int64
inputDataSchema
inputUiSchema
(absent ⇒ property omitted)
inputDataDefaultsScriptId
(absent ⇒ property omitted)
integer format: int64
type
string
updatedAt
string format: date-time
object
id
integer format: int64
name
string
body
string
groupId
integer format: int64
priority
integer format: int64
delaySeconds
integer format: int64
inputDataSchema
inputUiSchema
(absent ⇒ property omitted)
inputDataDefaultsScriptId
(absent ⇒ property omitted)
integer format: int64
type
string
updatedAt
string format: date-time
Example
{ "type": "AutomaticScript"}object
id
integer format: int64
name
string
body
string
groupId
integer format: int64
priority
integer format: int64
delaySeconds
integer format: int64
inputDataSchema
inputUiSchema
(absent ⇒ property omitted)
inputDataDefaultsScriptId
(absent ⇒ property omitted)
integer format: int64
type
string
updatedAt
string format: date-time
Example
{ "type": "AutomaticScript"}Not Found
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
