Pobierz nagłówek skryptu automatycznego
GET
/api/v1/automaticScripts/{id}/header
const url = 'https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/v1/automaticScripts/1/header';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 \ --header 'Authorization: Bearer <token>'Zwraca podstawowe dane skryptu (m.in. nazwę, status, wyzwalacz) bez kodu źródłowego.
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
groupId
integer format: int64
groupName
string
object
id
integer format: int64
name
string
groupId
integer format: int64
groupName
string
Examplegenerated
{ "id": 1, "name": "example", "groupId": 1, "groupName": "example"}object
id
integer format: int64
name
string
groupId
integer format: int64
groupName
string
Examplegenerated
{ "id": 1, "name": "example", "groupId": 1, "groupName": "example"}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"}
