Ash FrameworkAF
Ash Framework6mo ago
4 replies
evhinesdev

AshJsonAPI - How to pass a tenant?

I am running curl commands against my AshJsonAPI endpoint and, as expected, I receive a 'tenant must be set' error as I am not passing the tenant.

curl -XPOST -H 'Content-Type: application/vnd.api+json' localhost:4000/api/json/items -d '{"data": {"type": "item", "attributes": {"name": "test", "provider_id": "01985d4d-f0c4-73b5-8919-29946afeb08c", "deploys": []}}}'


However I can't seem to pass the tenant outside or inside of the "data" field. What is the structure to pass the tenant alongside the data?
Was this page helpful?