Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,17 @@ 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

You can also use the [Get OpenAPI definition of Actor build](/api/v2/actor-openapi-json-get) endpoint (`/v2/actors/{actorId}/builds/{buildId}/openapi.json`) to get the OpenAPI definition for a build.

:::
operationId: actorBuild_openapi_json_get
security: []
parameters:
- $ref: "../../components/parameters/runAndBuildParameters.yaml#/buildIdWithDefault"
responses:
Expand All @@ -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":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,18 @@ 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

You can also use the [Get OpenAPI definition of Actor build](/api/v2/actor-build-openapi-json-get) endpoint (`/v2/actor-builds/{buildId}/openapi.json`) to get the OpenAPI definition for a build.

:::
operationId: actor_openapi_json_get
security: []
parameters:
- $ref: "../../components/parameters/runAndBuildParameters.yaml#/actorId"
- $ref: "../../components/parameters/runAndBuildParameters.yaml#/buildIdWithDefault"
Expand Down
Loading