Get a custom property for an organization
GET
/orgs/{org}/properties/schema/{custom_property_name}
Gets a custom property that is defined for an organization. Organization members can read these properties.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
The organization name. The name is not case sensitive.
custom_property_name
required
string
The custom property name
Responses
Section titled “Responses”Response
Media typeapplication/json
Organization Custom Property
Custom property defined on an organization
object
property_name
required
The name of the property
string
url
The URL that can be used to fetch, update, or delete info about this property via the API.
string format: uri
source_type
The source type of the property
string
value_type
required
The type of the value for the property
string
required
Whether the property is required.
boolean
default_value
One of:
string
Array<string>
description
Short description of the property
string
allowed_values
An ordered list of the allowed values of the property. The property can have up to 200 allowed values.
Array<string>
values_editable_by
Who can edit the values of the property
string
require_explicit_values
Whether setting properties values is mandatory
boolean
Examples
Exampledefault
{ "property_name": "environment", "url": "https://api.github.com/orgs/github/properties/schema/environment", "source_type": "organization", "value_type": "single_select", "required": true, "default_value": "production", "description": "Prod or dev environment", "allowed_values": [ "production", "development" ]}Forbidden
Media typeapplication/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Examplegenerated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Resource not found
Media typeapplication/json
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Examplegenerated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}