Soundshot Plugin

Create soundshot

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

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

Body

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

Name of the soundshot

storageProviderstringLOCALS3WASABICLOUDINARYDIGITALOCEANrequired
recordedAttimestamptz

Date when the soundshot was recorded

fullUrlstring

Full URL to access the soundshot

sizenumber

Size of the soundshot file in bytes

channelsnumber

Sound channels of the soundshot file

ratenumber

Sound rate of the soundshot file

durationnumber

Duration of the soundshot file in seconds

timeSlotIdstring

The UUID of the associated TimeSlot

uploadedByIdstring

The UUID of the associated Employee

userIdstring

The UUID of the associated User

Response

201CreatedSoundshot

Soundshot 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
namestringrequired

Name of the soundshot

fileKeystring

Soundshot file path or identifier

storageProviderstringLOCALS3WASABICLOUDINARYDIGITALOCEANrequired
recordedAttimestamptz

Date when the soundshot was recorded

fullUrlstring

Full URL to access the soundshot

sizenumber

Size of the soundshot file in bytes

channelsnumber

Sound channels of the soundshot file

ratenumber

Sound rate of the soundshot file

durationnumber

Duration of the soundshot file in seconds

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