---
title: "Update a media"
method: PATCH
path: "/medias/{id}"
tags: ["Medias"]
---

# Update a media

`PATCH /medias/{id}`

Update an existing media

## Path parameters

- `id` string, required

## Request body

- ApiUpdateMedia
  - `title` string, required

## Response `200`

OK

- object
  - `code` integer
  - `data` object
    - `created_at` string — CreatedAt holds the value of the "created_at" field.
    - `edges` EntMediaEdges
      - `media_files` EntMediaFile[] — MediaFiles holds the value of the media_files edge.
        - `created_at` string — CreatedAt holds the value of the "created_at" field.
        - `duration_seconds` number — DurationSeconds holds the value of the "duration_seconds" field.
        - `edges` EntMediaFileEdges
          - `media` EntMedia
            - `created_at` string — CreatedAt holds the value of the "created_at" field.
            - `edges` EntMediaEdges — recursive
            - `id` string — ID of the ent.
            - `original_filename` string — OriginalFilename holds the value of the "original_filename" field.
            - `status` string — Status holds the value of the "status" field.
            - `title` string — Title holds the value of the "title" field.
            - `updated_at` string — UpdatedAt holds the value of the "updated_at" field.
        - `format` string — Format holds the value of the "format" field.
        - `framerate` integer — Framerate holds the value of the "framerate" field.
        - `id` string — ID of the ent.
        - `media_type` string — MediaType holds the value of the "media_type" field.
        - `rendition_name` string — RenditionName holds the value of the "rendition_name" field.
        - `resolution_height` integer — ResolutionHeight holds the value of the "resolution_height" field.
        - `resolution_width` integer — ResolutionWidth holds the value of the "resolution_width" field.
        - `target_bandwidth` integer — TargetBandwidth holds the value of the "target_bandwidth" field.
        - `updated_at` string — UpdatedAt holds the value of the "updated_at" field.
        - `video_bitrate` integer — VideoBitrate holds the value of the "video_bitrate" field.
    - `id` string — ID of the ent.
    - `original_filename` string — OriginalFilename holds the value of the "original_filename" field.
    - `status` string — Status holds the value of the "status" field.
    - `title` string — Title holds the value of the "title" field.
    - `updated_at` string — UpdatedAt holds the value of the "updated_at" field.
  - `metadata` object

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2020-10-08** `c0f9de0ce52f` — 1 info
  - endpoint added
- **2020-08-12** `e96b35d97038` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/dreamvo/apis/gilfoyle-server/changes/medias/:id/patch.md)

---

[API](https://skmtc.dev/dreamvo/apis/gilfoyle-server.md) · [All operations](https://skmtc.dev/dreamvo/apis/gilfoyle-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dreamvo/gilfoyle-server/revisions/47e030153fc0/schema)
