API service > Controllers > TenantUserMeta
- Extends PrivateApiController
- Implements CrudControllerInterface
- Uses UsesResourceModel
- TenantUserMetaModel available as
$this->tenantUserMetaModel
Methods:
Description:
Upsert tenant user meta.
Returned resource will have a new ID if previously existing.
Route:
PUT /tenants/{tenant}/users/{tenant_user}/meta/{key}
Path parameters:
tenant: (required|uuid)tenant_user: (required|uuid)key: (required)
Required permissions:
tenant_user_meta:createor self if tenant.user_meta_manage_self config value istrue
Required headers:
Content-Type:application/json
Valid query parameters:
- (none)
Body:
- TenantUserMetaModel fields
Response:
- HTTP status code:
201 - Schema: TenantUserMetaResource
Throws:
Bayfront\BonesService\Api\Exceptions\ApiServiceExceptionBayfront\BonesService\Api\Exceptions\Http\BadRequestExceptionBayfront\BonesService\Api\Exceptions\Http\ForbiddenExceptionBayfront\BonesService\Api\Exceptions\Http\NotFoundException
Description:
Create new resource.
Route:
POST /tenants/{tenant}/users/{tenant_user}/meta
Path parameters:
tenant: (required|uuid)tenant_user: (required|uuid)
Required permissions:
tenant_user_meta:createor self if tenant.user_meta_manage_self config value istrue
Required headers:
Content-Type:application/json
Valid query parameters:
- (none)
Body:
- TenantUserMetaModel fields
Response:
- HTTP status code:
201 - Schema: TenantUserMetaResource
Throws:
Bayfront\BonesService\Api\Exceptions\ApiServiceExceptionBayfront\BonesService\Api\Exceptions\Http\BadRequestExceptionBayfront\BonesService\Api\Exceptions\Http\ConflictExceptionBayfront\BonesService\Api\Exceptions\Http\ForbiddenExceptionBayfront\BonesService\Api\Exceptions\Http\NotFoundException
Description:
List resources.
Route:
GET /tenants/{tenant}/users/{tenant_user}/meta
Path parameters:
tenant: (required|uuid)tenant_user: (required|uuid)
Required permissions:
tenant_user_meta:reador self if tenant.user_meta_manage_self config value istrue
Required headers:
- (none)
Valid query parameters:
- Any valid QueryParser keys
Body:
- (none)
Response:
- HTTP status code:
200 - Schema: TenantUserMetaCollection
Throws:
Bayfront\BonesService\Api\Exceptions\ApiServiceExceptionBayfront\BonesService\Api\Exceptions\Http\BadRequestExceptionBayfront\BonesService\Api\Exceptions\Http\ForbiddenExceptionBayfront\BonesService\Api\Exceptions\Http\NotFoundException
Description:
Read single resource.
Route:
GET /tenants/{tenant}/users/{tenant_user}/meta/{id}
Path parameters:
tenant: (required|uuid)tenant_user: (required|uuid)id: (required|uuid)
Required permissions:
tenant_user_meta:reador self if tenant.user_meta_manage_self config value istrue
Required headers:
- (none)
Valid query parameters:
- Any valid FieldParser keys
Body:
- (none)
Response:
- HTTP status code:
200 - Schema: TenantUserMetaResource
Throws:
Bayfront\BonesService\Api\Exceptions\ApiServiceExceptionBayfront\BonesService\Api\Exceptions\Http\BadRequestExceptionBayfront\BonesService\Api\Exceptions\Http\ForbiddenExceptionBayfront\BonesService\Api\Exceptions\Http\NotFoundException
Description:
Update existing resource.
Route:
PATCH /tenants/{tenant}/users/{tenant_user}/meta/{id}
Path parameters:
tenant: (required|uuid)tenant_user: (required|uuid)id: (required|uuid)
Required permissions:
tenant_user_meta:updateor self if tenant.user_meta_manage_self config value istrue
Required headers:
Content-Type:application/json
Valid query parameters:
- (none)
Body:
- TenantUserMetaModel fields
Response:
- HTTP status code:
200 - Schema: TenantUserMetaResource
Throws:
Bayfront\BonesService\Api\Exceptions\ApiServiceExceptionBayfront\BonesService\Api\Exceptions\Http\BadRequestExceptionBayfront\BonesService\Api\Exceptions\Http\ConflictExceptionBayfront\BonesService\Api\Exceptions\Http\ForbiddenExceptionBayfront\BonesService\Api\Exceptions\Http\NotFoundException
Description:
Delete single resource.
Route:
DELETE /tenants/{tenant}/users/{tenant_user}/meta/{id}
Path parameters:
tenant: (required|uuid)tenant_user: (required|uuid)id: (required|uuid)
Required permissions:
tenant_user_meta:deleteor self if tenant.user_meta_manage_self config value istrue
Required headers:
- (none)
Valid query parameters:
- (none)
Body:
- (none)
Response:
- HTTP status code:
204 - Schema: (none)
Throws:
Bayfront\BonesService\Api\Exceptions\ApiServiceExceptionBayfront\BonesService\Api\Exceptions\Http\BadRequestExceptionBayfront\BonesService\Api\Exceptions\Http\ForbiddenExceptionBayfront\BonesService\Api\Exceptions\Http\NotFoundException