diff --git a/apify-api/openapi/components/schemas/common/errors/ActorErrors.yaml b/apify-api/openapi/components/schemas/common/errors/ActorErrors.yaml new file mode 100644 index 0000000000..f3c75b1282 --- /dev/null +++ b/apify-api/openapi/components/schemas/common/errors/ActorErrors.yaml @@ -0,0 +1,77 @@ +ActorNotFoundError: + type: object + properties: + error: + type: object + properties: + type: + type: string + enum: [actor-not-found] + message: + type: string + example: Actor was not found + +ActorBuildNotFoundError: + type: object + properties: + error: + type: object + properties: + type: + type: string + enum: [record-not-found] + message: + type: string + example: Actor build was not found + +ActorRunNotFoundError: + type: object + properties: + error: + type: object + properties: + type: + type: string + enum: [record-not-found] + message: + type: string + example: Actor run was not found + +ActorRunTimeoutExceededError: + type: object + properties: + error: + type: object + properties: + type: + type: string + enum: [run-timeout-exceeded] + message: + type: string + example: Actor run exceeded the timeout of 300 seconds for this API endpoint + +ActorRunFailedError: + type: object + properties: + error: + type: object + properties: + type: + type: string + enum: [run-failed] + message: + type: string + example: "Actor run did not succeed (run ID: 55uatRrZib4xbZs, status: FAILED)" + +ActorVersionNotFoundError: + type: object + properties: + error: + type: object + properties: + type: + type: string + enum: [record-not-found] + message: + type: string + example: Actor version was not found diff --git a/apify-api/openapi/components/schemas/common/errors/BuildErrors.yaml b/apify-api/openapi/components/schemas/common/errors/BuildErrors.yaml new file mode 100644 index 0000000000..a5e56c7e2b --- /dev/null +++ b/apify-api/openapi/components/schemas/common/errors/BuildErrors.yaml @@ -0,0 +1,12 @@ +UnknownBuildTagError: + type: object + properties: + error: + type: object + properties: + type: + type: string + enum: [unknown-build-tag] + message: + type: string + example: 'Build with tag "latest" was not found. Has the Actor been built already?' diff --git a/apify-api/openapi/components/schemas/common/errors/EnvVariableErrors.yaml b/apify-api/openapi/components/schemas/common/errors/EnvVariableErrors.yaml new file mode 100644 index 0000000000..4f4d75e498 --- /dev/null +++ b/apify-api/openapi/components/schemas/common/errors/EnvVariableErrors.yaml @@ -0,0 +1,12 @@ +EnvironmentVariableNotFoundError: + type: object + properties: + error: + type: object + properties: + type: + type: string + enum: [record-not-found] + message: + type: string + example: Environment variable was not found diff --git a/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}.yaml b/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}.yaml index 7a11dee179..b947fbc385 100644 --- a/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}.yaml +++ b/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}.yaml @@ -53,7 +53,11 @@ get: "403": $ref: ../../components/responses/Forbidden.yaml "404": - $ref: ../../components/responses/NotFound.yaml + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorBuildNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actor-builds/build-object/get-build @@ -95,7 +99,11 @@ delete: "401": $ref: ../../components/responses/Unauthorized.yaml "404": - $ref: ../../components/responses/NotFound.yaml + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorBuildNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actor-builds/delete-build/delete-build diff --git a/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@abort.yaml b/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@abort.yaml index 1f15312003..d35055d54b 100644 --- a/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@abort.yaml +++ b/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@abort.yaml @@ -33,6 +33,12 @@ post: $ref: ../../components/responses/Unauthorized.yaml "403": $ref: ../../components/responses/Forbidden.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorBuildNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actor-builds/abort-build/abort-build diff --git a/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@log.yaml b/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@log.yaml index b4dd54442a..c103d009cd 100644 --- a/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@log.yaml +++ b/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@log.yaml @@ -55,7 +55,11 @@ get: "400": $ref: ../../components/responses/BadRequest.yaml "404": - $ref: ../../components/responses/NotFound.yaml + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorBuildNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actor-builds/build-log/get-log diff --git a/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@openapi.json.yaml b/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@openapi.json.yaml index 71e2102fc3..644fb8abde 100644 --- a/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@openapi.json.yaml +++ b/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@openapi.json.yaml @@ -39,7 +39,11 @@ get: "400": $ref: ../../components/responses/BadRequest.yaml "404": - $ref: ../../components/responses/NotFound.yaml + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorBuildNotFoundError" x-js-parent: BuildClient x-js-name: getOpenApiDefinition x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/BuildClient#getOpenApiDefinition diff --git a/apify-api/openapi/paths/actors/acts@{actorId}.yaml b/apify-api/openapi/paths/actors/acts@{actorId}.yaml index 18c8b64ec0..d7ec26a3bc 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}.yaml @@ -83,6 +83,12 @@ get: finishedAt: "2019-06-10T11:15:49.286Z" "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/actor-object/get-actor @@ -264,6 +270,12 @@ put: finishedAt: "2019-06-10T11:15:49.286Z" "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/actor-object/update-actor @@ -302,6 +314,12 @@ delete: example: {} "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/actor-object/delete-actor diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@builds.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@builds.yaml index f9b5655b31..f7ffdccdea 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@builds.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@builds.yaml @@ -63,6 +63,12 @@ get: $ref: ../../components/schemas/actor-builds/ListOfBuildsResponse.yaml "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/build-collection/get-list-of-builds @@ -161,6 +167,12 @@ post: $ref: ../../components/schemas/actor-builds/BuildResponse.yaml "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/build-collection/build-actor diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@builds@default.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@builds@default.yaml index 90f2ad1a90..4d7e6c2464 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@builds@default.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@builds@default.yaml @@ -45,6 +45,19 @@ get: $ref: ../../components/schemas/actor-builds/BuildResponse.yaml "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" + "403": + # It should be 404, but is 403 for backwards compatibility. https://github.com/apify/apify-core/pull/17414 + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/BuildErrors.yaml#/UnknownBuildTagError" x-js-parent: ActorClient x-js-name: defaultBuild x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/ActorClient#defaultBuild diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@builds@{buildId}.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@builds@{buildId}.yaml index a4363371fb..3205349d81 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@builds@{buildId}.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@builds@{buildId}.yaml @@ -52,6 +52,14 @@ get: $ref: ../../components/schemas/actor-builds/BuildResponse.yaml "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + oneOf: + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorBuildNotFoundError" deprecated: true x-deprecated-description: "API endpoints related to build of the Actor were moved under new namespace [`actor-builds`](#/reference/actor-builds). Gets an object that contains all the details about a specific build of an Actor." x-legacy-doc-urls: diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@builds@{buildId}@abort.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@builds@{buildId}@abort.yaml index 164145fcc0..8ef4777642 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@builds@{buildId}@abort.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@builds@{buildId}@abort.yaml @@ -63,6 +63,14 @@ post: buildNumber: 0.1.1 "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + oneOf: + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorBuildNotFoundError" deprecated: true x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/abort-build/abort-build diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@builds@{buildId}@openapi.json.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@builds@{buildId}@openapi.json.yaml index 743c3a2533..95fb28d532 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@builds@{buildId}@openapi.json.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@builds@{buildId}@openapi.json.yaml @@ -49,3 +49,11 @@ get: description: A standard OpenAPI 3.x JSON document. "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + oneOf: + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorBuildNotFoundError" diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@run-sync-get-dataset-items.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@run-sync-get-dataset-items.yaml index 9e8518f0bc..87ed0aaffb 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@run-sync-get-dataset-items.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@run-sync-get-dataset-items.yaml @@ -366,24 +366,20 @@ post: content: application/json: schema: - $ref: ../../components/schemas/common/ErrorResponse.yaml - example: - error: - type: run-failed - message: >- - Actor run did not succeed (run ID: 55uatRrZib4xbZs, status: - FAILED) + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorRunFailedError" + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" "408": description: "" headers: {} content: application/json: schema: - $ref: ../../components/schemas/common/ErrorResponse.yaml - example: - error: - type: run-timeout-exceeded - message: Actor run exceeded timeout of 300 seconds for this API endpoint + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorRunTimeoutExceededError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/run-actor-synchronously-and-get-dataset-items/run-actor-synchronously-with-input-and-get-dataset-items @@ -732,24 +728,20 @@ get: content: application/json: schema: - $ref: ../../components/schemas/common/ErrorResponse.yaml - example: - error: - type: run-failed - message: >- - Actor run did not succeed (run ID: 55uatRrZib4xbZs, status: - FAILED) + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorRunFailedError" + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" "408": description: "" headers: {} content: application/json: schema: - $ref: ../../components/schemas/common/ErrorResponse.yaml - example: - error: - type: run-timeout-exceeded - message: Actor run exceeded timeout of 60 seconds for this API endpoint + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorRunTimeoutExceededError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/run-actor-synchronously-and-get-dataset-items/run-actor-synchronously-without-input-and-get-dataset-items diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@run-sync.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@run-sync.yaml index b9da3b0a7d..ba33da783a 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@run-sync.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@run-sync.yaml @@ -126,23 +126,20 @@ post: content: application/json: schema: - $ref: ../../components/schemas/common/ErrorResponse.yaml - example: - error: - type: run-failed - message: | - Actor run did not succeed (run ID: 55uatRrZib4xbZs, status: FAILED) + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorRunFailedError" + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" "408": description: "" headers: {} content: application/json: schema: - $ref: ../../components/schemas/common/ErrorResponse.yaml - example: - error: - type: run-timeout-exceeded - message: Actor run exceeded timeout of 300 seconds for this API endpoint + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorRunTimeoutExceededError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/run-actor-synchronously/with-input @@ -261,24 +258,20 @@ get: content: application/json: schema: - $ref: ../../components/schemas/common/ErrorResponse.yaml - example: - error: - type: run-failed - message: >- - Actor run did not succeed (run ID: 55uatRrZib4xbZs, status: - FAILED) + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorRunFailedError" + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" "408": description: "" headers: {} content: application/json: schema: - $ref: ../../components/schemas/common/ErrorResponse.yaml - example: - error: - type: run-timeout-exceeded - message: Actor run exceeded timeout of 60 seconds for this API endpoint + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorRunTimeoutExceededError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/run-actor-synchronously/without-input diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@runs.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@runs.yaml index c1228cf015..4fcfcb0c13 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@runs.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@runs.yaml @@ -101,6 +101,12 @@ get: $ref: ../../components/examples/ListOfRunsResponseExample.yaml "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/run-collection/get-list-of-runs @@ -259,6 +265,12 @@ post: $ref: ../../components/schemas/actor-runs/RunResponse.yaml "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/run-collection/run-actor diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@runs@last.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@runs@last.yaml index fc30e56fd3..e4933e4b88 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@runs@last.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@runs@last.yaml @@ -84,6 +84,14 @@ get: $ref: ../../components/schemas/actor-runs/RunResponse.yaml "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + oneOf: + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorRunNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/last-run-object-and-its-storages/get-last-run diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@runs@{runId}.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@runs@{runId}.yaml index 2d80eedbdd..f837f73e8b 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@runs@{runId}.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@runs@{runId}.yaml @@ -56,6 +56,14 @@ get: $ref: ../../components/schemas/actor-runs/RunResponse.yaml "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + oneOf: + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorRunNotFoundError" deprecated: true x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/run-object/get-run diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@runs@{runId}@abort.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@runs@{runId}@abort.yaml index cb06edfd66..b85e4eaf0d 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@runs@{runId}@abort.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@runs@{runId}@abort.yaml @@ -120,6 +120,14 @@ post: PROXY_SERPS: 0.0006 "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + oneOf: + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorRunNotFoundError" deprecated: true x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/abort-run/abort-run diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@runs@{runId}@metamorph.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@runs@{runId}@metamorph.yaml index 4d434df7e2..0773a34891 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@runs@{runId}@metamorph.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@runs@{runId}@metamorph.yaml @@ -73,6 +73,14 @@ post: $ref: ../../components/schemas/actor-runs/RunResponse.yaml "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + oneOf: + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorRunNotFoundError" deprecated: true x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/metamorph-run/metamorph-run diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@runs@{runId}@resurrect.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@runs@{runId}@resurrect.yaml index 0bee3982b1..201f2cca48 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@runs@{runId}@resurrect.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@runs@{runId}@resurrect.yaml @@ -87,6 +87,14 @@ post: $ref: ../../components/schemas/actor-runs/RunResponse.yaml "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + oneOf: + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorRunNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/resurrect-run/resurrect-run diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@versions.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@versions.yaml index b2b9bc2305..332a3774a5 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@versions.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@versions.yaml @@ -54,6 +54,12 @@ get: gitHubGistUrl: "https://gist.github.com/jane35/e51feb784yu89" "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/version-collection/get-list-of-versions @@ -133,6 +139,12 @@ post: $ref: ../../components/schemas/actors/VersionResponse.yaml "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/version-collection/create-version diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@versions@{versionNumber}.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@versions@{versionNumber}.yaml index c5f9d0b4d6..4b08316ed0 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@versions@{versionNumber}.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@versions@{versionNumber}.yaml @@ -32,6 +32,14 @@ get: $ref: ../../components/schemas/actors/VersionResponse.yaml "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + oneOf: + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorVersionNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/version-object/get-version @@ -107,6 +115,12 @@ put: $ref: ../../components/schemas/actors/VersionResponse.yaml "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/version-object/update-version @@ -151,6 +165,14 @@ delete: example: {} "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + oneOf: + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorVersionNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/version-object/delete-version diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@versions@{versionNumber}@env-vars.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@versions@{versionNumber}@env-vars.yaml index a78dd47216..1585434079 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@versions@{versionNumber}@env-vars.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@versions@{versionNumber}@env-vars.yaml @@ -33,6 +33,14 @@ get: $ref: ../../components/schemas/actors/ListOfEnvVarsResponse.yaml "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + oneOf: + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorVersionNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/environment-variable-collection/get-list-of-environment-variables @@ -114,6 +122,12 @@ post: isSecret: false "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/environment-variable-collection/create-environment-variable diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@versions@{versionNumber}@env-vars@{envVarName}.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@versions@{versionNumber}@env-vars@{envVarName}.yaml index 83652dae03..07a1aede56 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@versions@{versionNumber}@env-vars@{envVarName}.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@versions@{versionNumber}@env-vars@{envVarName}.yaml @@ -48,6 +48,15 @@ get: isSecret: false "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + oneOf: + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorVersionNotFoundError" + - $ref: "../../components/schemas/common/errors/EnvVariableErrors.yaml#/EnvironmentVariableNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/environment-variable-object/get-environment-variable @@ -129,6 +138,15 @@ put: isSecret: false "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + oneOf: + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorVersionNotFoundError" + - $ref: "../../components/schemas/common/errors/EnvVariableErrors.yaml#/EnvironmentVariableNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/environment-variable-object/update-environment-variable @@ -180,6 +198,15 @@ delete: example: {} "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + oneOf: + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" + - $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorVersionNotFoundError" + - $ref: "../../components/schemas/common/errors/EnvVariableErrors.yaml#/EnvironmentVariableNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/environment-variable-object/delete-environment-variable diff --git a/apify-api/openapi/paths/actors/acts@{actorId}@webhooks.yaml b/apify-api/openapi/paths/actors/acts@{actorId}@webhooks.yaml index 615f846444..21f30f1f19 100644 --- a/apify-api/openapi/paths/actors/acts@{actorId}@webhooks.yaml +++ b/apify-api/openapi/paths/actors/acts@{actorId}@webhooks.yaml @@ -63,6 +63,12 @@ get: $ref: ../../components/schemas/webhooks/ListOfWebhooksResponse.yaml "400": $ref: ../../components/responses/BadRequest.yaml + "404": + description: Not found - the requested resource was not found. + content: + application/json: + schema: + $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError" deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actors/webhook-collection/get-list-of-webhooks