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 33169673d5..a9853083f0 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 @@ -9,7 +9,10 @@ get: - [Get OpenAPI definition of Actor build](/api/v2/actor-build-openapi-json-get) (`/v2/actor-builds/{buildId}/openapi.json`): Requires only `buildId`. Get the OpenAPI definition for a specific Actor build. - Authentication is based on the build's unique ID. No authentication token is required. + + This endpoint does not require the authentication token if the Actor is public or if the build's owner has + [general resource access](https://docs.apify.com/account/collaboration/general-resource-access) set to + **Anyone with ID can read**. Otherwise, the token must have access to the build. :::note @@ -17,7 +20,6 @@ get: ::: operationId: actorBuild_openapi_json_get - security: [] parameters: - $ref: "../../components/parameters/runAndBuildParameters.yaml#/buildIdWithDefault" responses: @@ -31,6 +33,10 @@ get: description: A standard OpenAPI 3.x JSON document. "400": $ref: ../../components/responses/BadRequest.yaml + "401": + $ref: ../../components/responses/Unauthorized.yaml + "403": + $ref: ../../components/responses/Forbidden.yaml "404": $ref: ../../components/responses/NotFound.yaml "405": 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 4b9446d39f..27224b6d93 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 @@ -12,7 +12,11 @@ get: Get the OpenAPI definition for a specific Actor build. To fetch the default Actor build, simply pass `default` as the `buildId`. - Authentication is based on the build's unique ID. No authentication token is required. + + This endpoint does not require the authentication token if the Actor is public or, when you pass a build ID, + if the build's owner has [general resource access](https://docs.apify.com/account/collaboration/general-resource-access) + set to **Anyone with ID can read**. Otherwise, the token must have access to the build, or to the Actor when you + pass `default`. :::note @@ -20,7 +24,6 @@ get: ::: operationId: actor_openapi_json_get - security: [] parameters: - $ref: "../../components/parameters/runAndBuildParameters.yaml#/actorId" - $ref: "../../components/parameters/runAndBuildParameters.yaml#/buildIdWithDefault"