enterprise-admin
Create or update custom properties for an enterprise
Creates new or updates existing custom properties defined for an enterprise in a batch.
If the property already exists, the existing property will be replaced with the new values. Missing optional values will fall back to default values, previous values will be overwritten. E.g. if a property exists with values_editable_by: org_and_repo_actors and it's updated without specifying values_editable_by, it will be updated to default value org_actors.
To use this endpoint, the authenticated user must be an administrator for the enterprise.
patch/enterprises/{enterprise}/properties/schema
Path parameters
enterprisestring required
The slug version of the enterprise name.
Request body
Example request
{
"properties": [
{
"source_type": "organization",
"value_type": "single_select",
"values_editable_by": "org_actors"
}
]
}Response
Response
Example response
[
{
"source_type": "organization",
"value_type": "single_select",
"values_editable_by": "org_actors"
}
]