---
title: "Create or update custom property values for a repository"
method: PATCH
path: "/repos/{owner}/{repo}/properties/values"
tags: ["repos"]
---

# Create or update custom property values for a repository

`PATCH /repos/{owner}/{repo}/properties/values`

Create new or update existing custom property values for a repository.
Using a value of `null` for a custom property will remove or 'unset' the property value from the repository.

Repository admins and other users with the repository-level "edit custom property values" fine-grained permission can use this endpoint.

## Path parameters

- `owner` string, required
- `repo` string, required

## Request body

- object
  - `properties` CustomPropertyValue[], required — A list of custom property names and associated values to apply to the repositories.
    - `property_name` string, required — The name of the property
    - `value` union, required — The value assigned to the property
      - string
      - string[]

## Response `204`

No Content when custom property values are successfully created or updated

## Other responses

- `403` — Forbidden
- `404` — Resource not found
- `422` — Validation failed, or the endpoint has been spammed.

---

[API](https://skmtc.net/github/apis/rest-api.md) · [All operations](https://skmtc.net/github/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/rest-api/versions/80850db290cd/schema)
