if you're offloading work from an endpoint you might be interested in this guide
https://docs.prefect.io/v3/deploy/static-infrastructure-examples/background-tasks
otherwise if want to keep just triggering a fully fledged deployment, the issue is likely how you're configuring the storage for the deployment you're triggering. Because of the formatting and lack of detail in the question its hard to tell
- what kind of work pool you're using
- what directory you're running prefect deployment
from
you might want to check out the template repo with many examples like this
https://github.com/zzstoatzz/prefect-pack/blob/main/prefect.yaml