Customer File Info

Endpoints for managing customer file information.

'/customers/{id}/files'

GET

async find(
    @param.path.string('id') id: typeof Customer.prototype.userId,
    @param.query.object('filter') filter?: Filter<FileInfo>,
  ): Promise<FileInfo[]>

Auth: Yes RBAC: Admin, Customer (owner)

Retrieves all files a customer uploaded.

POST

async fileUpload(
    @param.path.string('id') id: typeof Customer.prototype.userId,
    @requestBody.file() request: Request,
    @inject(RestBindings.Http.RESPONSE) response: Response,
  ): Promise<FileInfo>

Auth: Yes RBAC: Admin, Customer

Upload a file for a customer.

'/guest/files'

POST

Auth: No

Upload a file for a guest.

'/customers/{id}/guestTransfer/{fileId}'

PATCH

Auth: Yes RBAC: Customer

Transfer ownership of the guest uploaded file to the currently logged in customer.

'/customers/{id}/files/{fileId}'

GET

Auth: Yes RBAC: Admin, Customer (owner)

Get a given file by ID.

DEL

Auth: Yes RBAC: Admin, Customer (owner)

Delete a given file by ID.

'/guest/files/{fileId}'

GET

Auth: No

Get a guest file by ID.

'/customers/{id}/files/{fileId}/download'

GET

Auth: Yes RBAC: Admin, Customer (owner)

Download an uploaded file.

'/guest/files/{fileId}/download'

GET

Auth: No

Download a file uploaded by a guest.

Last updated