Checks if a photo has a specific label.

GET /photo/checkPhotoLabel

Query parameters

  • photoId string Required

    The ID of the photo to check

  • label string Required

    The label to check for on the photo (max. 40 characters)

    Minimum length is 1, maximum length is 40.

Responses

  • 200 application/json

    Label check result

    Hide response attributes Show response attributes object
    • data object Required
      Hide data attribute Show data attribute object
      • hasLabel boolean Required

        Whether or not the photo has the specified label

    • warnings array[string]
  • 400 application/json

    Invalid request. The request was malformed or missing required parameters.

    Hide response attribute Show response attribute object
    • message string Required
GET /photo/checkPhotoLabel
curl \
 --request GET 'https://public-api.joinswsh.com/photo/checkPhotoLabel?photoId=44444444-4444-4444-4444-444444444444&label=Vacation' \
 --header "x-api-key: $API_KEY"
Response examples (200)
{
  "data": {
    "hasLabel": true
  },
  "warnings": [
    "Example warning"
  ]
}
Response examples (400)
{
  "message": "Invalid request"
}