Skip to main content
POST
/
api
/
v2
/
admin
/
tenants
/
{id}
Update tenant
curl --request POST \
  --url https://faisalshop.mvp-apps.ae/api/v2/admin/tenants/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'

Overview

Update tenant information such as name and settings. Only ADMIN users can update tenant details.

Authorization

  • User must be authenticated with a valid Bearer token
  • User must have ADMIN role in the tenant

Example Usage

curl -X POST \
  https://faisalshop.mvp-apps.ae/api/v2/admin/tenants/123 \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Updated Store Name"
  }'
await axios.post(
  `/api/v2/admin/tenants/${tenantId}`,
  {
    name: 'Updated Store Name'
  },
  {
    headers: {
      Authorization: `Bearer ${token}`
    }
  }
);

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

tenantId
integer
required

Tenant ID

Body

application/json
name
string

Response

200

Tenant updated