Przejdź do głównej zawartości

Zatrzymaj uruchomienie skryptu

POST
/api/v1/runs/{id}/stop
curl --request POST \
--url https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/v1/runs/1/stop \
--header 'Authorization: Bearer <token>'

Wymusza zatrzymanie trwającego uruchomienia skryptu.

id
wymagane
integer format: int64

Id of the run to stop.

Success

Response that describes run.

object
id

Id of the run.

integer format: int64
scriptId

Id of the script.

integer format: int64
nullable
createdAt

Date and time when run was created.

string format: date-time
state

State of the run.

string
nullable
parameters

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

object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive

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