Camshot Plugin

Create camshot

POST
http://localhost:3000/api/plugins/camshots

This API Endpoint allows uploading the camshot file along with related metadata.

Body

multipart/form-data
isActivebooleantrue
isArchivedbooleanfalse
archivedAtstring<date-time>
Example
2018-11-21T06:20:32.232Z
tenantIdstring
organizationIdstring
storageProviderstringLOCALS3WASABICLOUDINARYDIGITALOCEANrequired
recordedAttimestamptz

Date when the camshot was recorded

fullUrlstring

Full URL to access the camshot

thumbUrlstring

Thumb URL to access the camshot

sizenumber

Size of the camshot file in bytes

timeSlotIdstring

The UUID of the associated TimeSlot

uploadedByIdstring

The UUID of the associated Employee

userIdstring

The UUID of the associated User

Response

201CreatedCamshot

Camshot created successfully.

Response fields application/json
deletedAtstring<date-time>
Example
2018-11-21T06:20:32.232Z
createdAtstring<date-time>

The creation timestamp of the entity.

Example
2018-11-21T06:20:32.232Z
updatedAtstring<date-time>

The last update timestamp of the entity.

Example
2018-11-21T06:20:32.232Z
idstring
isActivebooleantrue
isArchivedbooleanfalse
archivedAtstring<date-time>
Example
2018-11-21T06:20:32.232Z
tenantIdstring
organizationIdstring
titlestringrequired

Title of the camshot

fileKeystring

Camshot file path or identifier

thumbKeystring

Camshot thumb file path or identifier

storageProviderstringLOCALS3WASABICLOUDINARYDIGITALOCEANrequired
recordedAttimestamptz

Date when the camshot was recorded

fullUrlstring

Full URL to access the camshot

thumbUrlstring

Thumb URL to access the camshot

sizenumber

Size of the camshot file in bytes

timeSlotIdstring

The UUID of the associated TimeSlot

uploadedByIdstring

The UUID of the associated Employee

userIdstring

The UUID of the associated User

400Bad Request

Invalid input provided. Check the response body for error details.

Copyright © 2023-Present Ever Co. LTD.Docs by Sourcey