---
title: "Create an OIDC custom property inclusion for an enterprise"
method: POST
path: "/enterprises/{enterprise}/actions/oidc/customization/properties/repo"
tags: ["oidc"]
---

# Create an OIDC custom property inclusion for an enterprise

`POST /enterprises/{enterprise}/actions/oidc/customization/properties/repo`

Adds a repository custom property to be included in the OIDC token for repository actions in an enterprise.

OAuth app tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.

## Path parameters

- `enterprise` string, required

## Request body

- OidcCustomPropertyInclusionInput — Input for creating an OIDC custom property inclusion
  - `custom_property_name` string, required — The name of the custom property to include in the OIDC token

## Response `201`

OIDC custom property inclusion created

- OidcCustomPropertyInclusion — An OIDC custom property inclusion for repository properties
  - `custom_property_name` string, required — The name of the custom property that is included in the OIDC token
  - `inclusion_source` 'organization' | 'enterprise', required — Whether the inclusion was defined at the organization or enterprise level

## Other responses

- `400` — Invalid input
- `403` — Forbidden
- `422` — Property inclusion already exists

---

[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)
