Back to Prefect

api

docs/v3/api-ref/python/prefect-cli-api.mdx

3.7.0415 B
Original Source

prefect.cli.api

API command — native cyclopts implementation.

Make direct requests to the Prefect API.

Functions

api_request <sup><a href="https://github.com/PrefectHQ/prefect/blob/main/src/prefect/cli/api.py#L130" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>

python
api_request(method: str, path: str)

Make a direct request to the Prefect API.