cURL
curl --request POST \ --url https://faisalshop.mvp-apps.ae/api/v2/admin/tenants \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "My Store" } '
{ "id": 123, "name": "<string>", "created_at": "2023-11-07T05:31:56Z" }
curl -X POST \ https://faisalshop.mvp-apps.ae/api/v2/admin/tenants \ -H 'Authorization: Bearer YOUR_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "name": "My New Store" }'
await axios.post( '/api/v2/admin/tenants', { name: 'My New Store' }, { headers: { Authorization: `Bearer ${token}` } } );
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
"My Store"
Tenant created