exists #
Checks if a specific soft tenant exists within a parent tenant.
This action is useful for verifying the presence of a soft tenant before attempting further operations like updates or deletions.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_/multi-tenancy/tenant/:tenantId/soft-tenants/:_id/_exists
Method: GETOther protocols #
{
"controller": "multi-tenancy/soft-tenant",
"action": "exists",
"tenantId": "teacher-liia",
"_id": "class-a"
}Arguments #
tenantId: (URL Argument) The unique identifier of the parent tenant._id: (URL Argument) The unique identifier of the soft tenant to retrieve.
Response #
Returns the requested soft tenant object:
exists: Boolean indicating if the soft tenant exists.
{
"status": 200,
"error": null,
"action": "exists",
"controller": "multi-tenancy/soft-tenant",
"requestId": "<unique request identifier>",
"result": {
"exists": true
}
}