hey, I am trying to read all the existing deployme...
# prefect-cloud
e
hey, I am trying to read all the existing deployments with the rest api, and getting 405 status code with body: {‘detail’: ’Method Not Allowed}
Copy code
curl --location --request POST '<https://api.prefect.cloud/api/accounts/><my_account_id>/workspaces/<my_workspace_id>/deployments/fliter' \
--header 'Authorization: Bearer <my_api_token>'
reading single deployments works as expected, and also all the other endpoints I have tried *I have also tried to use the GET method if anyone can help me it would be great, thanks!
1
j
Hi i think you may have a typo in your curl. “POST - …/deployments/filter”
e
lol, thanks