From 90c49f3e5ce67883ca1a46cc877ccb52b25f3caa Mon Sep 17 00:00:00 2001 From: Jan Kuzelik Date: Thu, 5 Oct 2023 10:49:23 +0200 Subject: [PATCH 1/4] Add docs for run/build DELETE --- sources/platform/api_v2/api_v2_reference.apib | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/sources/platform/api_v2/api_v2_reference.apib b/sources/platform/api_v2/api_v2_reference.apib index 76c552112c..66b754dab3 100644 --- a/sources/platform/api_v2/api_v2_reference.apib +++ b/sources/platform/api_v2/api_v2_reference.apib @@ -2213,6 +2213,19 @@ This endpoint does not require the authentication token. The calls are authentic + Attributes - data (Run, required) +## Delete run [/v2/actor-runs/{runId}{?token}] + +### Delete run [DELETE] + +Delete the run. Only finished builds can be deleted. Only the person or organisation that initiated the run can delete it. + ++ Parameters + + + runId: `3KH8gEpp4d8uQSe8T` (string, required) - Run ID. + + token: `soSkq9ekdmfOslopH` (string, required) - API authentication token. + ++ Response 204 (application/json) + ## Abort run [/v2/actor-runs/{runId}/abort{?token,gracefully}] ### Abort run [POST] @@ -2393,6 +2406,19 @@ This endpoint does not require the authentication token. The calls are authentic + Attributes - data (Build, required) +## Delete build [/v2/actor-builds/{buildId}{?token}] + +### Delete build [DELETE] + +Delete the build. The build that is the current default build for the Actor cannot be deleted. +Only users with build permissions for the Actor can delete builds. + ++ Parameters + + + buildId: `soSkq9ekdmfOslopH` (string, required) - ID of the build you want to get, found in the build's `Info` tab. + + token: `soSkq9ekdmfOslopH` (string, required) - API authentication token. + ++ Response 200 (application/json) ## Abort build [/v2/actor-builds/{buildId}/abort{?token}] From 9babdc0f0ac4ad39cb1ab681110b71919624ac28 Mon Sep 17 00:00:00 2001 From: Jkuzz <68104924+Jkuzz@users.noreply.github.com> Date: Thu, 5 Oct 2023 12:49:22 +0200 Subject: [PATCH 2/4] Update spelling Co-authored-by: TheoVasilis <98097738+TheoVasilis@users.noreply.github.com> --- 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 66b754dab3..500c874e33 100644 --- a/sources/platform/api_v2/api_v2_reference.apib +++ b/sources/platform/api_v2/api_v2_reference.apib @@ -2217,7 +2217,7 @@ This endpoint does not require the authentication token. The calls are authentic ### Delete run [DELETE] -Delete the run. Only finished builds can be deleted. Only the person or organisation that initiated the run can delete it. +Delete the run. Only finished builds can be deleted. Only the person or organization that initiated the run can delete it. + Parameters From d0268965406045a74786cc3a922171d5a810e254 Mon Sep 17 00:00:00 2001 From: Jan Kuzelik Date: Mon, 9 Oct 2023 09:21:41 +0200 Subject: [PATCH 3/4] Update response code --- 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 500c874e33..0b713d1185 100644 --- a/sources/platform/api_v2/api_v2_reference.apib +++ b/sources/platform/api_v2/api_v2_reference.apib @@ -2418,7 +2418,7 @@ Only users with build permissions for the Actor can delete builds. + buildId: `soSkq9ekdmfOslopH` (string, required) - ID of the build you want to get, found in the build's `Info` tab. + token: `soSkq9ekdmfOslopH` (string, required) - API authentication token. -+ Response 200 (application/json) ++ Response 204 (application/json) ## Abort build [/v2/actor-builds/{buildId}/abort{?token}] From da419161543ad40cea7907c495b0870fd60a9f79 Mon Sep 17 00:00:00 2001 From: Jkuzz <68104924+Jkuzz@users.noreply.github.com> Date: Tue, 10 Oct 2023 10:41:59 +0200 Subject: [PATCH 4/4] 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: Jakub Drobník --- 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 0b713d1185..d0b1f8562e 100644 --- a/sources/platform/api_v2/api_v2_reference.apib +++ b/sources/platform/api_v2/api_v2_reference.apib @@ -2217,7 +2217,7 @@ This endpoint does not require the authentication token. The calls are authentic ### Delete run [DELETE] -Delete the run. Only finished builds can be deleted. Only the person or organization that initiated the run can delete it. +Delete the run. Only finished runs can be deleted. Only the person or organization that initiated the run can delete it. + Parameters