Przejdź do głównej zawartości

Zmień wybrane pola skryptu

PATCH
/api/v3/automaticScripts/patch/{id}
curl --request PATCH \
--url https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/v3/automaticScripts/patch/1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": { "value": "example" }, "groupId": { "value": 1 } }'

Częściowo aktualizuje wskazane pola skryptu i od razu zwraca jego aktualny stan (bez zadania asynchronicznego).

id
wymagane
integer format: int64

Id of the automatic script to update

Patch that should be applied on the automatic script.

object
name
object
hasValue
boolean
value
string
nullable
groupId
object
hasValue
boolean
value
integer format: int64
Examplegenerated
{
"name": {
"value": "example"
},
"groupId": {
"value": 1
}
}

Success

object
id
integer format: int64
name
string
nullable
body
string
nullable
groupId
integer format: int64
priority
integer format: int64
delaySeconds
integer format: int64
inputDataSchema
nullable
inputUiSchema

(absent ⇒ property omitted)

nullable
inputDataDefaultsScriptId

(absent ⇒ property omitted)

integer format: int64
nullable
type
string
Dozwolone wartości: AutomaticScript AutomaticAction
updatedAt
string format: date-time
nullable

Bad Request

object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties

Not Found

object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties