addProfile #
Adds a profile to a tenant.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_/multi-tenancy/tenants/:group/:name/profile
Method: POST
Other protocols #
{
"controller": "multi-tenancy/tenant",
"action": "addProfile",
"group": "{tenantGroup}",
"name": "{tenantName}"
}
Arguments #
group
: Tenant groupname
: Tenant name
Response #
Returns an object containing the newly created profile
{
"status": 200,
"error": null,
"action": "addProfile",
"controller": "multi-tenancy/tenant",
"requestId": "<unique request identifier>",
"result": {
"_id": "teacher-liia-headTeacher",
"rateLimit": 0,
"policies": [
{
"roleId": "users.admin",
"restrictedTo": [
{
"index": "tenant-teacher-liia"
}
]
},
{
"roleId": "tenants.reader"
},
{
"roleId": "soft-tenants.reader",
"restrictedTo": [
{
"index": "tenant-teacher-liia"
}
]
},
{
"roleId": "default",
"restrictedTo": [
{
"index": "tenant-teacher-liia"
}
]
},
{
"roleId": "documents.reader",
"restrictedTo": [
{
"index": "tenant-teacher-liia"
}
]
}
],
"optimizedPolicies": [
{
"restrictedTo": {},
"roleId": "users.admin"
},
{
"roleId": "tenants.reader"
},
{
"restrictedTo": {},
"roleId": "soft-tenants.reader"
},
{
"restrictedTo": {},
"roleId": "default"
},
{
"restrictedTo": {},
"roleId": "documents.reader"
}
],
},
}
Edit this page on Github(opens new window)