From ce1d281ef317ff577623c645139f7380f260f493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Morav=C4=8D=C3=ADk?= Date: Wed, 26 Jul 2023 11:44:31 +0200 Subject: [PATCH 1/2] feat: Add Actor reboot endpoint --- sources/platform/api_v2/api_v2_reference.apib | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/sources/platform/api_v2/api_v2_reference.apib b/sources/platform/api_v2/api_v2_reference.apib index f4842a056..0abcc00f0 100644 --- a/sources/platform/api_v2/api_v2_reference.apib +++ b/sources/platform/api_v2/api_v2_reference.apib @@ -2247,6 +2247,24 @@ For more information, see the [Actor docs](https://docs.apify.com/platform/actor + Attributes - data (RunMetamorphed, required) +## Reboot run [/v2/actor-runs/{runId}/reboot{?token}] + +### Reboot run [POST] + +Reboots an actor run and returns an object that contains all the details about the rebooted run. +Only runs that are running, i.e. runs with status `RUNNING` can be rebooted. +The run's container will be restarted. + ++ Parameters + + + runId: `3KH8gEpp4d8uQSe8T` (string, required) - Actor run ID. + + token: `soSkq9ekdmfOslopH` (string, required) - API authentication token. + ++ Response 200 (application/json) + + + Attributes + - data (Run, required) + ## Resurrect run [/v2/acts/{actorId}/runs/{runId}/resurrect{?token,build,timeout,memory}] ### Resurrect run [POST] From df8ddf8e8f4d7c7c0e5c5a86b1cc2ad8eee407d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Morav=C4=8D=C3=ADk?= Date: Thu, 27 Jul 2023 15:44:28 +0200 Subject: [PATCH 2/2] Update sources/platform/api_v2/api_v2_reference.apib MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Marek Trunkát --- sources/platform/api_v2/api_v2_reference.apib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/platform/api_v2/api_v2_reference.apib b/sources/platform/api_v2/api_v2_reference.apib index 0abcc00f0..070093497 100644 --- a/sources/platform/api_v2/api_v2_reference.apib +++ b/sources/platform/api_v2/api_v2_reference.apib @@ -2253,7 +2253,7 @@ For more information, see the [Actor docs](https://docs.apify.com/platform/actor Reboots an actor run and returns an object that contains all the details about the rebooted run. Only runs that are running, i.e. runs with status `RUNNING` can be rebooted. -The run's container will be restarted. +The run's container will be restarted, so any data not persisted in the key-value store, dataset, or request queue will be lost. + Parameters