Przejdź do głównej zawartości

Uruchom skrypt ręcznie

POST
/api/v3/automaticScripts/start/{id}
curl --request POST \
--url https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/v3/automaticScripts/start/1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "context": "example", "owner": { "email": "example", "userName": "example", "fullName": "example", "id": 1, "roles": [ "example" ] }, "order": { "id": 1 }, "return": { "id": 1 }, "runParams": { "additionalProperty": {} }, "multipleOrdersIdsForScope": [ 1 ], "multipleOrdersIds": [ 1 ] }'

Uruchamia skrypt automatyczny na żądanie dla wskazanego obiektu, niezależnie od jego wyzwalacza.

id
wymagane
integer format: int64

Id of the script to start.

Parameters of the run. They will be passed to the script in object with name data.

object
context
wymagane
string
>= 1 characters
owner
object
email
string
nullable
userName
string
nullable
fullName
string
nullable
id
integer format: int64
roles
Array<string>
nullable
order
wymagane
object
id
wymagane
integer format: int64
return
object
id
wymagane
integer format: int64
runParams
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
inputData
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object recursive
root
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
options
object
propertyNameCaseInsensitive
boolean
parent
object recursive
root
object recursive
root
object recursive
multipleOrdersIdsForScope
Array<integer>
nullable
multipleOrdersIds
Array<integer>
nullable
Examplegenerated
{
"context": "example",
"owner": {
"email": "example",
"userName": "example",
"fullName": "example",
"id": 1,
"roles": [
"example"
]
},
"order": {
"id": 1
},
"return": {
"id": 1
},
"runParams": {
"additionalProperty": {}
},
"multipleOrdersIdsForScope": [
1
],
"multipleOrdersIds": [
1
]
}

Accepted

integer format: int64

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