{"meta":{"title":"경고 해제 요청에 대한 Dependabot REST API 엔드포인트","intro":"REST API를 사용하여 리포지토리에 대한 경고 해제 요청을 관리 Dependabot 합니다.","product":"REST API","breadcrumbs":[{"href":"/ko/enterprise-server@3.21/rest","title":"REST API"},{"href":"/ko/enterprise-server@3.21/rest/dependabot","title":"Dependabot"},{"href":"/ko/enterprise-server@3.21/rest/dependabot/alert-dismissal-requests","title":"경고 해제 요청"}],"documentType":"article"},"body":"# 경고 해제 요청에 대한 {% data variables.product.prodname_dependabot %} REST API 엔드포인트\n\nREST API를 사용하여 리포지토리에 대한 경고 해제 요청을 관리 Dependabot 합니다.\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## List dismissal requests for Dependabot alerts for an organization\n\n```\nGET /orgs/{org}/dismissal-requests/dependabot\n```\n\nLists dismissal requests for Dependabot alerts in an organization.\nDelegated alert dismissal must be enabled on repositories in the org and the user must be an org admin, security manager,\nor have the appropriate permission to access this endpoint.\nPersonal access tokens (classic) need the security_events scope to use this endpoint.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`org`** (string) (required)\n  The organization name. The name is not case sensitive.\n\n- **`repository_name`** (string)\n  The name of the repository to filter on.\n\n- **`reviewer`** (string)\n  Filter bypass requests by the handle of the GitHub user who reviewed the bypass request.\n\n- **`requester`** (string)\n  Filter bypass requests by the handle of the GitHub user who requested the bypass.\n\n- **`time_period`** (string)\n  The time period to filter by.\nFor example, day will filter for rule suites that occurred in the past 24 hours, and week will filter for rule suites that occurred in the past 7 days (168 hours).\n  Default: `day`\n  Can be one of: `hour`, `day`, `week`, `month`\n\n- **`request_status`** (string)\n  The status of the dismissal request to filter on. When specified, only requests with this status will be returned.\n  Default: `all`\n  Can be one of: `completed`, `cancelled`, `approved`, `expired`, `denied`, `open`, `all`\n\n- **`per_page`** (integer)\n  The number of results per page (max 100). For more information, see \"Using pagination in the REST API.\"\n  Default: `30`\n\n- **`page`** (integer)\n  The page number of the results to fetch. For more information, see \"Using pagination in the REST API.\"\n  Default: `1`\n\n### HTTP response status codes\n\n- **200** - A list of alert dismissal requests.\n\n- **403** - Forbidden\n\n- **404** - Resource not found\n\n- **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  http(s)://HOSTNAME/api/v3/orgs/ORG/dismissal-requests/dependabot\n```\n\n**Response schema (Status: 200):**\n\nArray of `Dependabot alert dismissal request`:\n  * `id`: integer, format: int64\n  * `number`: integer, format: int64\n  * `repository`: object:\n    * `id`: integer, format: int64\n    * `name`: string\n    * `full_name`: string\n  * `organization`: object:\n    * `id`: integer, format: int64\n    * `name`: string\n  * `requester`: object:\n    * `actor_id`: integer, format: int64\n    * `actor_name`: string\n  * `request_type`: string\n  * `data`: array of objects or null:\n    * `reason`: string\n    * `alert_number`: string\n    * `alert_title`: string\n  * `resource_identifier`: string\n  * `status`: string, enum: `pending`, `denied`, `approved`, `expired`\n  * `requester_comment`: string or null\n  * `expires_at`: string, format: date-time\n  * `created_at`: string, format: date-time\n  * `responses`: array of `Dismissal request response` or null:\n    * `id`: integer, format: int64\n    * `reviewer`: object:\n      * `actor_id`: integer, format: int64\n      * `actor_name`: string\n    * `message`: string or null\n    * `status`: string, enum: `approved`, `denied`, `dismissed`\n    * `created_at`: string, format: date-time\n  * `url`: string, format: uri\n  * `html_url`: string, format: uri\n\n## List dismissal requests for Dependabot alerts for a repository\n\n```\nGET /repos/{owner}/{repo}/dismissal-requests/dependabot\n```\n\nLists dismissal requests for Dependabot alerts for a repository.\nDelegated alert dismissal must be enabled on the repository.\nPersonal access tokens (classic) need the security_events scope to use this endpoint.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`owner`** (string) (required)\n  The account owner of the repository. The name is not case sensitive.\n\n- **`repo`** (string) (required)\n  The name of the repository without the .git extension. The name is not case sensitive.\n\n- **`reviewer`** (string)\n  Filter alert dismissal requests by the handle of the GitHub user who reviewed the dismissal request.\n\n- **`requester`** (string)\n  Filter alert dismissal requests by the handle of the GitHub user who requested the dismissal.\n\n- **`time_period`** (string)\n  The time period to filter by.\nFor example, day will filter for rule suites that occurred in the past 24 hours, and week will filter for insights that occurred in the past 7 days (168 hours).\n  Default: `month`\n  Can be one of: `hour`, `day`, `week`, `month`\n\n- **`request_status`** (string)\n  Filter alert dismissal requests by status. When specified, only requests with this status will be returned.\n  Default: `all`\n  Can be one of: `open`, `approved`, `expired`, `denied`, `all`\n\n- **`per_page`** (integer)\n  The number of results per page (max 100). For more information, see \"Using pagination in the REST API.\"\n  Default: `30`\n\n- **`page`** (integer)\n  The page number of the results to fetch. For more information, see \"Using pagination in the REST API.\"\n  Default: `1`\n\n### HTTP response status codes\n\n- **200** - A list of alert dismissal requests.\n\n- **403** - Forbidden\n\n- **404** - Resource not found\n\n- **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  http(s)://HOSTNAME/api/v3/repos/OWNER/REPO/dismissal-requests/dependabot\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [List dismissal requests for Dependabot alerts for an organization](#list-dismissal-requests-for-dependabot-alerts-for-an-organization).\n\n## Get a dismissal request for a Dependabot alert for a repository\n\n```\nGET /repos/{owner}/{repo}/dismissal-requests/dependabot/{alert_number}\n```\n\nGets a dismissal request to dismiss a Dependabot alert in a repository.\nDelegated alert dismissal must be enabled on the repository.\nPersonal access tokens (classic) need the security_events scope to use this endpoint.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`owner`** (string) (required)\n  The account owner of the repository. The name is not case sensitive.\n\n- **`repo`** (string) (required)\n  The name of the repository without the .git extension. The name is not case sensitive.\n\n- **`alert_number`** (integer) (required)\n  The number that identifies the Dependabot alert.\n\n### HTTP response status codes\n\n- **200** - A single dismissal request.\n\n- **403** - Forbidden\n\n- **404** - Resource not found\n\n- **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  http(s)://HOSTNAME/api/v3/repos/OWNER/REPO/dismissal-requests/dependabot/ALERT_NUMBER\n```\n\n**Response schema (Status: 200):**\n\n* `id`: integer, format: int64\n* `number`: integer, format: int64\n* `repository`: object:\n  * `id`: integer, format: int64\n  * `name`: string\n  * `full_name`: string\n* `organization`: object:\n  * `id`: integer, format: int64\n  * `name`: string\n* `requester`: object:\n  * `actor_id`: integer, format: int64\n  * `actor_name`: string\n* `request_type`: string\n* `data`: array of objects or null:\n  * `reason`: string\n  * `alert_number`: string\n  * `alert_title`: string\n* `resource_identifier`: string\n* `status`: string, enum: `pending`, `denied`, `approved`, `expired`\n* `requester_comment`: string or null\n* `expires_at`: string, format: date-time\n* `created_at`: string, format: date-time\n* `responses`: array of `Dismissal request response` or null:\n  * `id`: integer, format: int64\n  * `reviewer`: object:\n    * `actor_id`: integer, format: int64\n    * `actor_name`: string\n  * `message`: string or null\n  * `status`: string, enum: `approved`, `denied`, `dismissed`\n  * `created_at`: string, format: date-time\n* `url`: string, format: uri\n* `html_url`: string, format: uri\n\n## Create a dismissal request for a Dependabot alert for a repository\n\n```\nPOST /repos/{owner}/{repo}/dismissal-requests/dependabot/{alert_number}\n```\n\nCreates a new dismissal request to dismiss a Dependabot alert in a repository.\nDelegated alert dismissal must be enabled on the repository and the user must have permission to view Dependabot alerts to access this endpoint.\nOAuth app tokens and personal access tokens (classic) need the security_events scope to use this endpoint.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`owner`** (string) (required)\n  The account owner of the repository. The name is not case sensitive.\n\n- **`repo`** (string) (required)\n  The name of the repository without the .git extension. The name is not case sensitive.\n\n- **`alert_number`** (integer) (required)\n  The number that identifies the Dependabot alert.\n\n#### Body parameters\n\n- **`dismissed_reason`** (string) (required)\n  The reason for dismissing the alert.\n  Can be one of: `fix_started`, `no_bandwidth`, `tolerable_risk`, `inaccurate`, `not_used`\n\n- **`dismissed_comment`** (string)\n  An optional comment explaining the dismissal.\n\n### HTTP response status codes\n\n- **201** - The created dismissal request.\n\n- **403** - Forbidden\n\n- **404** - Resource not found\n\n- **422** - Validation failed, or the endpoint has been spammed.\n\n- **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X POST \\\n  http(s)://HOSTNAME/api/v3/repos/OWNER/REPO/dismissal-requests/dependabot/ALERT_NUMBER \\\n  -d '{\n  \"dismissed_reason\": \"tolerable_risk\",\n  \"dismissed_comment\": \"Risk is acceptable for this project.\"\n}'\n```\n\n**Response schema (Status: 201):**\n\nSame response schema as [Get a dismissal request for a Dependabot alert for a repository](#get-a-dismissal-request-for-a-dependabot-alert-for-a-repository).\n\n## Review a dismissal request for a Dependabot alert for a repository\n\n```\nPATCH /repos/{owner}/{repo}/dismissal-requests/dependabot/{alert_number}\n```\n\nApprove or deny a dismissal request to dismiss a Dependabot alert in a repository.\nDelegated alert dismissal must be enabled on the repository and the user must be a dismissal reviewer to access this endpoint.\nOAuth app tokens and personal access tokens (classic) need the security_events scope to use this endpoint.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`owner`** (string) (required)\n  The account owner of the repository. The name is not case sensitive.\n\n- **`repo`** (string) (required)\n  The name of the repository without the .git extension. The name is not case sensitive.\n\n- **`alert_number`** (integer) (required)\n  The number that identifies the Dependabot alert.\n\n#### Body parameters\n\n- **`status`** (string) (required)\n  The review action to perform on the dismissal request.\n  Can be one of: `approve`, `deny`\n\n- **`message`** (string) (required)\n  A message to include with the review.\n\n### HTTP response status codes\n\n- **200** - The review of the dismissal request.\n\n- **403** - Forbidden\n\n- **404** - Resource not found\n\n- **422** - Validation failed, or the endpoint has been spammed.\n\n- **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PATCH \\\n  http(s)://HOSTNAME/api/v3/repos/OWNER/REPO/dismissal-requests/dependabot/ALERT_NUMBER \\\n  -d '{\n  \"status\": \"approve\",\n  \"message\": \"Used in tests.\"\n}'\n```\n\n**Response schema (Status: 200):**\n\n* `dismissal_review_id`: integer\n\n## Cancel a dismissal request for a Dependabot alert for a repository\n\n```\nDELETE /repos/{owner}/{repo}/dismissal-requests/dependabot/{alert_number}\n```\n\nCancels a pending dismissal request for a Dependabot alert in a repository.\nThe authenticated user must be the requester of the dismissal request or have reviewer permissions (security manager or organization owner).\nDelegated alert dismissal must be enabled on the repository.\nOAuth app tokens and personal access tokens (classic) need the security_events scope to use this endpoint.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`owner`** (string) (required)\n  The account owner of the repository. The name is not case sensitive.\n\n- **`repo`** (string) (required)\n  The name of the repository without the .git extension. The name is not case sensitive.\n\n- **`alert_number`** (integer) (required)\n  The number that identifies the Dependabot alert.\n\n### HTTP response status codes\n\n- **204** - Dismissal request cancelled successfully.\n\n- **403** - Forbidden\n\n- **404** - Resource not found\n\n- **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X DELETE \\\n  http(s)://HOSTNAME/api/v3/repos/OWNER/REPO/dismissal-requests/dependabot/ALERT_NUMBER\n```\n\n**Response schema (Status: 204):**"}