---
title: "Add photos for a location."
method: POST
path: "/api/v4/locations/photos"
tags: ["Locations"]
---

# Add photos for a location.

`POST /api/v4/locations/photos`

Attaches media to a location, either by public image URL or by referencing files already in your media library.

## Request body

- object
  - `input` AddLocationPhotosInput, required
    - `clientMutationId` string
    - `locationId` string, required
    - `photos` LocationPhotoInput[], required
      - `url` string, required
      - `caption` string
      - `type` string

## Response `200`

Successful response

- AddLocationPhotosPayload — (also defined by media-manager)
  - `clientMutationId` string
  - `photos` PhotoType[]
    - `id` string, required
    - `url` string, required
    - `caption` string
    - `starred` boolean
  - `errors` MutationErrorType[]
    - `code` string
    - `message` string, required
    - `path` string[]

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `500` — Server error

---

[API](https://skmtc.net/listingsapi/apis/listings-api.md) · [All operations](https://skmtc.net/listingsapi/apis/listings-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/listingsapi/listings-api/revisions/9274a1eac380/schema)
