Skip to content

Latest commit

 

History

History
281 lines (163 loc) · 6.29 KB

File metadata and controls

281 lines (163 loc) · 6.29 KB

API service > Controllers > TenantUserMeta

Methods:

upsert

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:

Required headers:

  • Content-Type: application/json

Valid query parameters:

  • (none)

Body:

Response:

Throws:

  • Bayfront\BonesService\Api\Exceptions\ApiServiceException
  • Bayfront\BonesService\Api\Exceptions\Http\BadRequestException
  • Bayfront\BonesService\Api\Exceptions\Http\ForbiddenException
  • Bayfront\BonesService\Api\Exceptions\Http\NotFoundException

create

Description:

Create new resource.

Route:

POST /tenants/{tenant}/users/{tenant_user}/meta

Path parameters:

  • tenant: (required|uuid)
  • tenant_user: (required|uuid)

Required permissions:

Required headers:

  • Content-Type: application/json

Valid query parameters:

  • (none)

Body:

Response:

Throws:

  • Bayfront\BonesService\Api\Exceptions\ApiServiceException
  • Bayfront\BonesService\Api\Exceptions\Http\BadRequestException
  • Bayfront\BonesService\Api\Exceptions\Http\ConflictException
  • Bayfront\BonesService\Api\Exceptions\Http\ForbiddenException
  • Bayfront\BonesService\Api\Exceptions\Http\NotFoundException

list

Description:

List resources.

Route:

GET /tenants/{tenant}/users/{tenant_user}/meta

Path parameters:

  • tenant: (required|uuid)
  • tenant_user: (required|uuid)

Required permissions:

Required headers:

  • (none)

Valid query parameters:

Body:

  • (none)

Response:

Throws:

  • Bayfront\BonesService\Api\Exceptions\ApiServiceException
  • Bayfront\BonesService\Api\Exceptions\Http\BadRequestException
  • Bayfront\BonesService\Api\Exceptions\Http\ForbiddenException
  • Bayfront\BonesService\Api\Exceptions\Http\NotFoundException

read

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:

Required headers:

  • (none)

Valid query parameters:

Body:

  • (none)

Response:

Throws:

  • Bayfront\BonesService\Api\Exceptions\ApiServiceException
  • Bayfront\BonesService\Api\Exceptions\Http\BadRequestException
  • Bayfront\BonesService\Api\Exceptions\Http\ForbiddenException
  • Bayfront\BonesService\Api\Exceptions\Http\NotFoundException

update

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:

Required headers:

  • Content-Type: application/json

Valid query parameters:

  • (none)

Body:

Response:

Throws:

  • Bayfront\BonesService\Api\Exceptions\ApiServiceException
  • Bayfront\BonesService\Api\Exceptions\Http\BadRequestException
  • Bayfront\BonesService\Api\Exceptions\Http\ConflictException
  • Bayfront\BonesService\Api\Exceptions\Http\ForbiddenException
  • Bayfront\BonesService\Api\Exceptions\Http\NotFoundException

delete

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:

Required headers:

  • (none)

Valid query parameters:

  • (none)

Body:

  • (none)

Response:

  • HTTP status code: 204
  • Schema: (none)

Throws:

  • Bayfront\BonesService\Api\Exceptions\ApiServiceException
  • Bayfront\BonesService\Api\Exceptions\Http\BadRequestException
  • Bayfront\BonesService\Api\Exceptions\Http\ForbiddenException
  • Bayfront\BonesService\Api\Exceptions\Http\NotFoundException