provider orgs PUT /orgs/{org}/properties/schema/{custom_property_name}
@utdk/github /orgs/{org}/properties/schema/{custom_property_name}
Create or update a custom property for an organization
Creates a new or updates an existing custom property that is defined for an organization. To use this endpoint, the authenticated user must be one of: - An administrator for the organization. - A user, or a user on a team, with the fine-grained permission of `custom_properties_org_definitions_manager` in the organization.
org path required
The organization name. The name is not case sensitive.
string
custom_property_name path required
The custom property name
string

Try it

Authentication
Configure credentials for GitHub v3 REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

orgs.customPropertiesForReposCreateOrUpdateOrganizationDefinition
PUT/orgs/{org}/properties/schema/{custom_property_name}
Creates a new or updates an existing custom property that is defined for an organization. To use this endpoint, the authenticated user must be one of: - An administrator for the organization. - A user, or a user on a team, with the fine-grained permission of `custom_properties_org_definitions_manager` in the organization.

Parameters

required

The organization name. The name is not case sensitive.

required

The custom property name

Input

required

The type of the value for the property

Whether the property is required.

Default value of the property

Short description of the property

An ordered list of the allowed values of the property. The property can have up to 200 allowed values.

Who can edit the values of the property

Whether setting properties values is mandatory

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.orgs.customPropertiesForReposCreateOrUpdateOrganizationDefinition()