Zaktualizuj grupę skryptów
PUT
/api/groups/{id}
const url = 'https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/groups/1';const options = { method: 'PUT', 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 PUT \ --url https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/groups/1 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "id": 1, "name": "example" }'Zmienia dane grupy skryptów. Zwraca zadanie asynchroniczne.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”id
wymagane
integer format: int64
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"}
