Zatrzymaj uruchomienie skryptu
POST
/api/v1/runs/{id}/stop
const url = 'https://twoja-instancja-ajs-api.enterprise.sellrocket.pl/api/v1/runs/1/stop';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”id
wymagane
integer format: int64
Id of the run to stop.
Odpowiedzi
Dział zatytułowany „Odpowiedzi”Success
Response that describes run.
object
id
Id of the run.
integer format: int64
scriptId
Id of the script.
integer format: int64
createdAt
Date and time when run was created.
string format: date-time
state
State of the run.
string
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
Response that describes run.
object
id
Id of the run.
integer format: int64
scriptId
Id of the script.
integer format: int64
createdAt
Date and time when run was created.
string format: date-time
state
State of the run.
string
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
Examplegenerated
{ "id": 1, "scriptId": 1, "createdAt": "2026-04-15T12:00:00Z", "state": "example", "parameters": { "additionalProperty": {} }}Response that describes run.
object
id
Id of the run.
integer format: int64
scriptId
Id of the script.
integer format: int64
createdAt
Date and time when run was created.
string format: date-time
state
State of the run.
string
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
Examplegenerated
{ "id": 1, "scriptId": 1, "createdAt": "2026-04-15T12:00:00Z", "state": "example", "parameters": { "additionalProperty": {} }}Bad Request
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
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"}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"}Not Found
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
key
additional properties
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"}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"}
