Pobierz obiekty dostępne w skryptach
GET
/api/v3/dsl/getSupportedObjects
const url = 'https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/v3/dsl/getSupportedObjects';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/v3/dsl/getSupportedObjects \ --header 'Authorization: Bearer <token>'Zwraca obiekty i pola, z których można korzystać w skryptach automatycznych danego typu. Przydatne przy pisaniu własnych skryptów.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry zapytania
Dział zatytułowany „Parametry zapytania”type
string
Object type.
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"}
