Przejdź do głównej zawartości

Zaktualizuj grupę skryptów

PUT
/api/groups/{id}
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.

id
wymagane
integer format: int64
object
id
integer format: int64
name
string
nullable
Examplegenerated
{
"id": 1,
"name": "example"
}

Success

Typ treściapplication/json
object
id
integer format: int64
createdAt
string format: date-time
updatedAt
string format: date-time
payload
nullable
result
nullable
status
string
Dozwolone wartości: New InProgress Completed Failed
command
string
nullable
Example
{
"status": "New"
}

Bad Request

Typ treściapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}