Skip to content

Latest commit

 

History

History
80 lines (40 loc) · 2 KB

WatermarksApi.md

File metadata and controls

80 lines (40 loc) · 2 KB

WatermarksApi

All URIs are relative to https://ws.api.video

Method Description HTTP request
upload() Upload a watermark POST /watermarks
delete() Delete a watermark DELETE /watermarks/{watermarkId}
list() List all watermarks GET /watermarks

upload() - Upload a watermark

Create a new watermark by uploading a JPG or a PNG image.

Parameters

Name Type Required Description
file string | Readable | Buffer yes The `.jpg` or `.png` image to be added as a watermark.

Return type

Promise<Watermark>.


delete() - Delete a watermark

Delete a watermark.

Parameters

Name Type Required Description
watermarkId string yes The watermark ID for the watermark you want to delete.

Return type

Promise<void>.


list() - List all watermarks

List all watermarks associated with your workspace.

Parameters

Name Type Required Description
sortBy string no Allowed: createdAt. You can search by the time watermark were created at.
sortOrder string no Allowed: asc, desc. asc is ascending and sorts from A to Z. desc is descending and sorts from Z to A.
currentPage number no Choose the number of search results to return per page. Minimum value: 1
pageSize number no Results per page. Allowed values 1-100, default is 25.

Return type

Promise<WatermarksListResponse>.