{"meta":{"title":"사용자 지정 속성","intro":"REST API를 사용하여 엔터프라이즈에 대한 사용자 지정 속성을 관리합니다.","product":"REST API","breadcrumbs":[{"href":"/ko/enterprise-cloud@latest/rest","title":"REST API"},{"href":"/ko/enterprise-cloud@latest/rest/enterprise-admin","title":"기업 관리자"},{"href":"/ko/enterprise-cloud@latest/rest/enterprise-admin/custom-properties","title":"사용자 지정 속성"}],"documentType":"article"},"body":"# 사용자 지정 속성\n\nREST API를 사용하여 엔터프라이즈에 대한 사용자 지정 속성을 관리합니다.\n\n\n> [!NOTE]\n> Most endpoints use `Authorization: Bearer <YOUR-TOKEN>` and `Accept: application/vnd.github+json` headers, plus `X-GitHub-Api-Version: 2026-03-10`. Curl examples below omit these standard headers for brevity.\n\n\n## Get custom properties for an enterprise\n\n```\nGET /enterprises/{enterprise}/properties/schema\n```\n\nGets all custom properties defined for an enterprise.\nEnterprise members can read these properties.\n\n\n### Parameters\n\n\n#### Headers\n\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n\n\n#### Path and query parameters\n\n- **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n\n\n\n\n\n### HTTP response status codes\n\n\n- **200** - OK\n\n\n- **403** - Forbidden\n\n\n- **404** - Resource not found\n\n\n\n\n### Code examples\n\n\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/enterprises/ENTERPRISE/properties/schema\n```\n\n**Response schema (Status: 200):**\n\nArray of `Organization Custom Property`:\n  * `property_name`: required, string\n  * `url`: string, format: uri\n  * `source_type`: string, enum: `organization`, `enterprise`\n  * `value_type`: required, string, enum: `string`, `single_select`, `multi_select`, `true_false`, `url`\n  * `required`: boolean\n  * `default_value`: one of:\n    * **string**\n    * **array**\n  * `description`: string or null\n  * `allowed_values`: array of string or null\n  * `values_editable_by`: string or null, enum: `org_actors`, `org_and_repo_actors`, `null`\n  * `require_explicit_values`: boolean\n\n\n\n\n\n## Create or update custom properties for an enterprise\n\n```\nPATCH /enterprises/{enterprise}/properties/schema\n```\n\nCreates new or updates existing custom properties defined for an enterprise in a batch.\nIf the property already exists, the existing property will be replaced with the new values.\nMissing optional values will fall back to default values, previous values will be overwritten.\nE.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.\nTo use this endpoint, the authenticated user must be an administrator for the enterprise.\n\n\n### Parameters\n\n\n#### Headers\n\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n\n\n#### Path and query parameters\n\n- **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n\n\n\n#### Body parameters\n\n- **`properties`** (array of objects) (required)\n  The array of custom properties to create or update.\n  - **`property_name`** (string) (required)\n    The name of the property\n  - **`url`** (string)\n    The URL that can be used to fetch, update, or delete info about this property via the API.\n  - **`source_type`** (string)\n    The source type of the property\n    Can be one of: `organization`, `enterprise`\n  - **`value_type`** (string) (required)\n    The type of the value for the property\n    Can be one of: `string`, `single_select`, `multi_select`, `true_false`, `url`\n  - **`required`** (boolean)\n    Whether the property is required.\n  - **`default_value`** (null or string or array)\n    Default value of the property\n  - **`description`** (string or null)\n    Short description of the property\n  - **`allowed_values`** (array of strings or null)\n    An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.\n  - **`values_editable_by`** (string or null)\n    Who can edit the values of the property\n    Can be one of: `org_actors`, `org_and_repo_actors`, `null`\n  - **`require_explicit_values`** (boolean)\n    Whether setting properties values is mandatory\n\n\n\n\n\n### HTTP response status codes\n\n\n- **200** - OK\n\n\n- **403** - Forbidden\n\n\n- **404** - Resource not found\n\n\n\n\n### Code examples\n\n\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PATCH \\\n  https://api.github.com/enterprises/ENTERPRISE/properties/schema \\\n  -d '{\n  \"properties\": [\n    {\n      \"property_name\": \"environment\",\n      \"value_type\": \"single_select\",\n      \"required\": true,\n      \"default_value\": \"production\",\n      \"description\": \"Prod or dev environment\",\n      \"allowed_values\": [\n        \"production\",\n        \"development\"\n      ],\n      \"values_editable_by\": \"org_actors\"\n    },\n    {\n      \"property_name\": \"service\",\n      \"value_type\": \"string\"\n    },\n    {\n      \"property_name\": \"team\",\n      \"value_type\": \"string\",\n      \"description\": \"Team owning the repository\"\n    }\n  ]\n}'\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Get custom properties for an enterprise](#get-custom-properties-for-an-enterprise).\n\n\n\n\n\n## Promote a custom property to an enterprise\n\n```\nPUT /enterprises/{enterprise}/properties/schema/organizations/{org}/{custom_property_name}/promote\n```\n\nPromotes an existing organization custom property to an enterprise.\nTo use this endpoint, the authenticated user must be an administrator for the enterprise.\n\n\n### Parameters\n\n\n#### Headers\n\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n\n\n#### Path and query parameters\n\n- **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n- **`org`** (string) (required)\n  The organization name. The name is not case sensitive.\n\n- **`custom_property_name`** (string) (required)\n  The custom property name\n\n\n\n\n\n\n### HTTP response status codes\n\n\n- **200** - OK\n\n\n- **403** - Forbidden\n\n\n- **404** - Resource not found\n\n\n\n\n### Code examples\n\n\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PUT \\\n  https://api.github.com/enterprises/ENTERPRISE/properties/schema/organizations/ORG/CUSTOM_PROPERTY_NAME/promote\n```\n\n**Response schema (Status: 200):**\n\n* `property_name`: required, string\n* `url`: string, format: uri\n* `source_type`: string, enum: `organization`, `enterprise`\n* `value_type`: required, string, enum: `string`, `single_select`, `multi_select`, `true_false`, `url`\n* `required`: boolean\n* `default_value`: one of:\n  * **string**\n  * **array**\n* `description`: string or null\n* `allowed_values`: array of string or null\n* `values_editable_by`: string or null, enum: `org_actors`, `org_and_repo_actors`, `null`\n* `require_explicit_values`: boolean\n\n\n\n\n\n## Get a custom property for an enterprise\n\n```\nGET /enterprises/{enterprise}/properties/schema/{custom_property_name}\n```\n\nGets a custom property that is defined for an enterprise.\nEnterprise members can read these properties.\n\n\n### Parameters\n\n\n#### Headers\n\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n\n\n#### Path and query parameters\n\n- **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n- **`custom_property_name`** (string) (required)\n  The custom property name\n\n\n\n\n\n\n### HTTP response status codes\n\n\n- **200** - OK\n\n\n- **403** - Forbidden\n\n\n- **404** - Resource not found\n\n\n\n\n### Code examples\n\n\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/enterprises/ENTERPRISE/properties/schema/CUSTOM_PROPERTY_NAME\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Promote a custom property to an enterprise](#promote-a-custom-property-to-an-enterprise).\n\n\n\n\n\n## Create or update a custom property for an enterprise\n\n```\nPUT /enterprises/{enterprise}/properties/schema/{custom_property_name}\n```\n\nCreates a new or updates an existing custom property that is defined for an enterprise.\nTo use this endpoint, the authenticated user must be an administrator for the enterprise.\n\n\n### Parameters\n\n\n#### Headers\n\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n\n\n#### Path and query parameters\n\n- **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n- **`custom_property_name`** (string) (required)\n  The custom property name\n\n\n\n\n#### Body parameters\n\n- **`value_type`** (string) (required)\n  The type of the value for the property\n  Can be one of: `string`, `single_select`, `multi_select`, `true_false`, `url`\n\n- **`required`** (boolean)\n  Whether the property is required.\n\n- **`default_value`** (null or string or array)\n  Default value of the property\n\n- **`description`** (string or null)\n  Short description of the property\n\n- **`allowed_values`** (array of strings or null)\n  An ordered list of the allowed values of the property.\nThe property can have up to 200 allowed values.\n\n- **`values_editable_by`** (string or null)\n  Who can edit the values of the property\n  Can be one of: `org_actors`, `org_and_repo_actors`, `null`\n\n- **`require_explicit_values`** (boolean)\n  Whether setting properties values is mandatory\n\n\n\n\n\n### HTTP response status codes\n\n\n- **200** - OK\n\n\n- **403** - Forbidden\n\n\n- **404** - Resource not found\n\n\n\n\n### Code examples\n\n\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PUT \\\n  https://api.github.com/enterprises/ENTERPRISE/properties/schema/CUSTOM_PROPERTY_NAME \\\n  -d '{\n  \"value_type\": \"single_select\",\n  \"required\": true,\n  \"default_value\": \"production\",\n  \"description\": \"Prod or dev environment\",\n  \"allowed_values\": [\n    \"production\",\n    \"development\"\n  ]\n}'\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Promote a custom property to an enterprise](#promote-a-custom-property-to-an-enterprise).\n\n\n\n\n\n## Remove a custom property for an enterprise\n\n```\nDELETE /enterprises/{enterprise}/properties/schema/{custom_property_name}\n```\n\nRemove a custom property that is defined for an enterprise.\nTo use this endpoint, the authenticated user must be an administrator for the enterprise.\n\n\n### Parameters\n\n\n#### Headers\n\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n\n\n#### Path and query parameters\n\n- **`enterprise`** (string) (required)\n  The slug version of the enterprise name.\n\n- **`custom_property_name`** (string) (required)\n  The custom property name\n\n\n\n\n\n\n### HTTP response status codes\n\n\n- **204** - A header with no content is returned.\n\n\n- **403** - Forbidden\n\n\n- **404** - Resource not found\n\n\n\n\n### Code examples\n\n\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X DELETE \\\n  https://api.github.com/enterprises/ENTERPRISE/properties/schema/CUSTOM_PROPERTY_NAME\n```\n\n**Response schema (Status: 204):**"}