---
title: "Set the customization template for an OIDC subject claim for a repository"
method: PUT
path: "/repos/{owner}/{repo}/actions/oidc/customization/sub"
tags: ["actions"]
---

# Set the customization template for an OIDC subject claim for a repository

`PUT /repos/{owner}/{repo}/actions/oidc/customization/sub`

Sets the customization template and `opt-in` or `opt-out` flag for an OpenID Connect (OIDC) subject claim for a repository.
You must authenticate using an access token with the `repo` scope to use this
endpoint. GitHub Apps must have the `actions:write` permission to use this endpoint.

## Path parameters

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

## Request body

- object — Actions OIDC subject customization for a repository
  - `use_default` boolean, required — Whether to use the default template or not.

## Response `201`

Empty response

- EmptyObject — An object without any properties.

## Other responses

- `400` — Bad Request
- `404` — Resource not found
- `422` — Validation failed, or the endpoint has been spammed.

---

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