Utwórz grupę skryptów
POST
/api/groups
const url = 'https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/groups';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"id":1,"name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/groups \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": 1, "name": "example" }'Tworzy grupę do porządkowania skryptów automatycznych. Zwraca zadanie asynchroniczne.
Autoryzacja
Dział zatytułowany „Autoryzacja”Treść żądania
Dział zatytułowany „Treść żądania”object
id
integer format: int64
name
string
Examplegenerated
{ "id": 1, "name": "example"}object
id
integer format: int64
name
string
Examplegenerated
{ "id": 1, "name": "example"}object
id
integer format: int64
name
string
Examplegenerated
{ "id": 1, "name": "example"}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Typ treściapplication/json
object
id
integer format: int64
createdAt
string format: date-time
updatedAt
string format: date-time
payload
result
status
string
command
string
Example
{ "status": "New"}Bad Request
Typ treściapplication/json
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"}
