diff --git a/apify-api/openapi/components/responses/Forbidden.yaml b/apify-api/openapi/components/responses/Forbidden.yaml new file mode 100644 index 0000000000..4da651b06e --- /dev/null +++ b/apify-api/openapi/components/responses/Forbidden.yaml @@ -0,0 +1,9 @@ +description: Forbidden - insufficient permissions to perform this action. +content: + application/json: + schema: + $ref: ../schemas/common/ErrorResponse.yaml + example: + error: + type: permission-denied + message: You do not have permission to perform this action. diff --git a/apify-api/openapi/paths/actor-builds/actor-builds.yaml b/apify-api/openapi/paths/actor-builds/actor-builds.yaml index aed7fb5b8f..31a2ab5ef3 100644 --- a/apify-api/openapi/paths/actor-builds/actor-builds.yaml +++ b/apify-api/openapi/paths/actor-builds/actor-builds.yaml @@ -61,4 +61,6 @@ get: $ref: ../../components/schemas/actor-builds/ListOfBuildsResponse.yaml "400": $ref: ../../components/responses/BadRequest.yaml + "403": + $ref: ../../components/responses/Forbidden.yaml deprecated: false 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 e2b645577a..7a11dee179 100644 --- a/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}.yaml +++ b/apify-api/openapi/paths/actor-builds/actor-builds@{buildId}.yaml @@ -48,6 +48,12 @@ get: - $ref: ../../components/schemas/actor-builds/BuildResponse.yaml "400": $ref: ../../components/responses/BadRequest.yaml + "401": + $ref: ../../components/responses/Unauthorized.yaml + "403": + $ref: ../../components/responses/Forbidden.yaml + "404": + $ref: ../../components/responses/NotFound.yaml deprecated: false x-legacy-doc-urls: - https://docs.apify.com/api/v2#/reference/actor-builds/build-object/get-build @@ -86,6 +92,10 @@ delete: content: {} "400": $ref: ../../components/responses/BadRequest.yaml + "401": + $ref: ../../components/responses/Unauthorized.yaml + "404": + $ref: ../../components/responses/NotFound.yaml 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 911d1c8a9b..1f15312003 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 @@ -29,6 +29,10 @@ post: - $ref: ../../components/schemas/actor-builds/BuildResponse.yaml "400": $ref: ../../components/responses/BadRequest.yaml + "401": + $ref: ../../components/responses/Unauthorized.yaml + "403": + $ref: ../../components/responses/Forbidden.yaml 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 9b82111e7c..b4dd54442a 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 @@ -19,7 +19,7 @@ get: description: | If `true` or `1` then the logs will be streamed as long as the run or build is running. - required: true + required: false style: form explode: true schema: @@ -30,7 +30,7 @@ get: description: | If `true` or `1` then the web browser will download the log file rather than open it in a tab. - required: true + required: false style: form explode: true schema: @@ -54,6 +54,8 @@ get: 2017-07-14T06:00:49.752Z Some useful debug information follows. "400": $ref: ../../components/responses/BadRequest.yaml + "404": + $ref: ../../components/responses/NotFound.yaml 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 e0be98aae6..71e2102fc3 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 @@ -38,6 +38,8 @@ get: description: A standard OpenAPI 3.x JSON document. "400": $ref: ../../components/responses/BadRequest.yaml + "404": + $ref: ../../components/responses/NotFound.yaml x-js-parent: BuildClient x-js-name: getOpenApiDefinition x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/BuildClient#getOpenApiDefinition