Add new tags to files

Add new tags to your files.

POST https://api.imagemash.io/v1/storage/deleteFiles

Headers

Name
Type
Description

apikey*

Your API Key

Request Body

Name
Type
Description

filePaths*

Array

Array of filePaths. Eg. /jeep.png or /cars/jeep.png

tags*

Array

Array of tags to be inserted. Each tag will be inserted to every file that filePaths contains. Eg. car, jeep

{
    "successCount": 1,
    "modifiedCount": 0,
    "erroredCount": 2,
    "erroredFiles": [
        "/Asset 1.png",
        "/Asset 2.png"
    ]
}

Example Codes

curl --location 'https://api.imagemash.io/v1/storage/addTags' \
--header 'apikey: your_api_key' \
--header 'Content-Type: application/json' \
--data '{
    "filePaths": [
        "/Asset 1.png",
        "/Asset 2.png",
        "/Asset 6.png"
    ],
    "tags": [
        "car",
        "jeep"
    ]
}'

Last updated