Screenshot

Capture a start/stop screenshot

POST
http://localhost:3000/api/timesheet/screenshot

Captures a screenshot when the timer is started or stopped. This API allows uploading the screenshot file along with related metadata.

Body

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
filestringrequired
thumbstring
recordedAttimestamptz
storageProviderstringLOCALS3WASABICLOUDINARYDIGITALOCEAN
isWorkRelatedstring

Specifies whether the image or screenshot is work-related.

descriptionstring

Description of the image or screenshot.

appsjson

Applications associated with the image or screenshot.

timeSlotIdstring
userIdstring

Response

Screenshot captured 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
filestringrequired
thumbstring
recordedAttimestamptz
storageProviderstringLOCALS3WASABICLOUDINARYDIGITALOCEAN
isWorkRelatedstring

Specifies whether the image or screenshot is work-related.

descriptionstring

Description of the image or screenshot.

appsjson

Applications associated with the image or screenshot.

timeSlotIdstring
userIdstring
400Bad Request

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

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