{"meta":{"title":"글로벌 알림에 대한 REST API 엔드포인트","intro":"REST API를 사용하여 귀하의 기업에서 글로벌 공지 배너를 관리합니다.","product":"REST API","breadcrumbs":[{"href":"/ko/enterprise-server@3.20/rest","title":"REST API"},{"href":"/ko/enterprise-server@3.20/rest/enterprise-admin","title":"기업 관리자"},{"href":"/ko/enterprise-server@3.20/rest/enterprise-admin/announcement","title":"알림"}],"documentType":"article"},"body":"# 글로벌 알림에 대한 REST API 엔드포인트\n\nREST API를 사용하여 귀하의 기업에서 글로벌 공지 배너를 관리합니다.\n\n## 공지 정보\n\nREST API를 사용하여 엔터프라이즈에서 전체 공지 배너를 관리할 수 있습니다. 자세한 내용은 [엔터프라이즈에 대한 사용자 메시지 사용자 지정](/ko/enterprise-server@3.20/admin/managing-accounts-and-repositories/communicating-information-to-users-in-your-enterprise/customizing-user-messages-for-your-enterprise#creating-a-global-announcement-banner)을(를) 참조하세요.\n\n> \\[!NOTE]\n> 이러한 엔드포인트는 personal access token (classic)을(를) 사용하는 인증만 지원합니다. 자세한 내용은 [개인용 액세스 토큰 관리](/ko/enterprise-server@3.20/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic)을(를) 참조하세요.\n\n> \\[!NOTE]\n> Most endpoints use `Authorization: Bearer <YOUR-TOKEN>` and `Accept: application/vnd.github+json` headers, plus `X-GitHub-Api-Version: 2022-11-28`. Curl examples below omit these standard headers for brevity.\n\n## Get the global announcement banner\n\n```\nGET /enterprise/announcement\n```\n\nGets the current message and expiration date of the global announcement banner in your enterprise.\n\n### HTTP response status codes\n\n* **200** - OK\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  http(s)://HOSTNAME/api/v3/enterprise/announcement\n```\n\n**Response schema (Status: 200):**\n\n* `announcement`: required, string or null\n* `expires_at`: string or null, format: date-time\n* `user_dismissible`: boolean or null, default: `false`\n\n## Set the global announcement banner\n\n```\nPATCH /enterprise/announcement\n```\n\nSets the message and expiration time for the global announcement banner in your enterprise.\n\n### Parameters\n\n#### Headers\n\n* **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Body parameters\n\n* **`announcement`** (string or null) (required)\n  The announcement text in GitHub Flavored Markdown. For more information about GitHub Flavored Markdown, see \"Basic writing and formatting syntax.\"\n\n* **`expires_at`** (string or null)\n  The time at which the announcement expires. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. To set an announcement that never expires, omit this parameter, set it to null, or set it to an empty string.\n\n* **`user_dismissible`** (boolean or null)\n  Whether an announcement can be dismissed by the user.\n  Default: `false`\n\n### HTTP response status codes\n\n* **200** - OK\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PATCH \\\n  http(s)://HOSTNAME/api/v3/enterprise/announcement \\\n  -d '{\n  \"announcement\": \"Very **important** announcement about _something_.\",\n  \"expires_at\": \"2021-01-01T00:00:00.000+00:00\"\n}'\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Get the global announcement banner](#get-the-global-announcement-banner).\n\n## Remove the global announcement banner\n\n```\nDELETE /enterprise/announcement\n```\n\nRemoves the global announcement banner in your enterprise.\n\n### HTTP response status codes\n\n* **204** - No Content\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X DELETE \\\n  http(s)://HOSTNAME/api/v3/enterprise/announcement\n```\n\n**Response schema (Status: 204):**"}