diff --git a/src/apify_client/clients/resource_clients/build.py b/src/apify_client/clients/resource_clients/build.py index 19e25fac..bbc91f59 100644 --- a/src/apify_client/clients/resource_clients/build.py +++ b/src/apify_client/clients/resource_clients/build.py @@ -43,16 +43,16 @@ def abort(self) -> dict: """ return self._abort() - def get_open_api_specification(self) -> dict | None: - """Return OpenAPI specification of the Actor's build. + def get_open_api_definition(self) -> dict | None: + """Return OpenAPI definition of the Actor's build. - https://docs.apify.com/api/v2/actor-build-openapi-specification-get + https://docs.apify.com/api/v2/actor-build-openapi-json-get Returns: - OpenAPI specification of the Actor's build. + OpenAPI definition of the Actor's build. """ response = self.http_client.call( - url=self._url('openapi-specification'), + url=self._url('openapi.json'), method='GET', ) @@ -120,16 +120,16 @@ async def delete(self) -> None: """ return await self._delete() - async def get_open_api_specification(self) -> dict | None: - """Return OpenAPI specification of the Actor's build. + async def get_open_api_definition(self) -> dict | None: + """Return OpenAPI definition of the Actor's build. - https://docs.apify.com/api/v2/actor-build-openapi-specification-get + https://docs.apify.com/api/v2/actor-build-openapi-json-get Returns: - OpenAPI specification of the Actor's build. + OpenAPI definition of the Actor's build. """ response = await self.http_client.call( - url=self._url('openapi-specification'), + url=self._url('openapi.json'), method='GET', )