---
title: "Update custom file metadata for a file"
method: PATCH
path: "/custom_file_metadata_records/{file_id}/"
tags: ["Custom Metadata"]
---

# Update custom file metadata for a file

`PATCH /custom_file_metadata_records/{file_id}/`

Update an existing custom file metadata record. Editable fields include title, description, language, resource type, and funding information.

## Path parameters

- `file_id` string, required

## Request body

- object
  - `data` object, required
    - `type` string, required — The resource type.
    - `attributes` object, required
      - `title` string — The title of the file.
      - `description` string — A description of the file.
      - `language` string — The language of the content.
      - `resource_type_general` string — The general type of the resource.
      - `funders` object[] — Information about funding sources.
        - `funder_name` string, required
        - `funder_identifier` string
        - `funder_identifier_type` 'ISNI' | 'GRID' | 'Crossref Funder ID' | 'ROR' | 'Other'
        - `award_number` string
        - `award_uri` string
        - `award_title` string

## Response `200`

Successfully updated custom file metadata record.

## Other responses

- `400` — Validation error or invalid data.
- `401` — Authentication credentials were not provided or are invalid.
- `403` — You do not have permission to modify this metadata record.
- `404` — Metadata record not found.

---

[API](https://skmtc.dev/osf/apis/osf-apiv2-documentation.md) · [All operations](https://skmtc.dev/osf/apis/osf-apiv2-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/osf/osf-apiv2-documentation/revisions/3c5164c707eb/schema)
