---
title: "Update a photos details"
method: PATCH
path: "/photos/{property_id}/media/{media_id}"
tags: ["Images"]
---

# Update a photos details

`PATCH /photos/{property_id}/media/{media_id}`

## Request

- Base URL: `https://street.co.uk/open-api/v1`
- URL: `https://street.co.uk/open-api/v1/photos/{property_id}/media/{media_id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/street/apis/street-open-api/docs/photos/:property_id/media/:media_id/patch.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint allows you to update a photo details.

## Path parameters

- `property_id` string, uuid, required
- `media_id` string, uuid, required

## Request body

- object
  - `data` object, required
    - `type` 'image', required
    - `attributes` object, required
      - `title` string
      - `include_in_listing` boolean

## Response `200`

OK.

- object
  - `data` UploadedMedia
    - `type` 'floorplan' | 'photo'
    - `id` string, uuid
    - `attributes` object
      - `name` string
      - `order` integer
      - `is_featured` boolean, nullable
      - `include_in_listing` boolean, nullable
      - `feature_index` integer
      - `title` string
      - `media_type` string
      - `url` string, uri
      - `deleted_at` string, date-time, nullable
      - `created_at` string, date-time
      - `updated_at` string, date-time
    - `links` object
      - `self` string, uri, required

## Other responses

- `400`: The HTTP 400 Bad Request response status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
- `401`: The HTTP 401 Unauthorized response status code indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource.
- `403`: The HTTP 403 Forbidden response status code indicates that the server understands the request but refuses to authorize it.
- `404`: The HTTP 404 Not Found response status code indicates that the server cannot find the requested resource.
- `406`: The HTTP 406 Not Acceptable client error response code indicates that the server cannot produce a response matching the list of acceptable values defined in the request's proactive content negotiation headers, and that the server is unwilling to supply a default representation.
- `409`: The HTTP 409 Conflict response status code indicates a request conflict with the current state of the target resource.
- `415`: The HTTP 415 Unsupported Media Type client error response code indicates that the server refuses to accept the request because the payload format is in an unsupported format.
- `500`: The HTTP 500 Internal Server Error server error response code indicates that the server encountered an unexpected condition that prevented it from fulfilling the request.

---

[API](https://skmtc.dev/street/apis/street-open-api.md) - [All operations](https://skmtc.dev/street/apis/street-open-api/llms.txt) - [OpenAPI document](https://skmtc.dev/street/apis/street-open-api/revisions/f6566b8fcd77?raw)
