diff --git a/descriptions-next/api.github.com/api.github.com.2022-11-28.json b/descriptions-next/api.github.com/api.github.com.2022-11-28.json index 5c0ae6f207..4fffde0207 100644 --- a/descriptions-next/api.github.com/api.github.com.2022-11-28.json +++ b/descriptions-next/api.github.com/api.github.com.2022-11-28.json @@ -6379,6 +6379,81 @@ "category": "dependabot", "subcategory": "repository-access" } + }, + "patch": { + "summary": "Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.", + "description": "> [!NOTE]\n> This operation supports both server-to-server and user-to-server access.\nUnauthorized users will not see the existence of this endpoint.", + "tags": [ + "dependabot" + ], + "operationId": "dependabot/update-repository-access-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies" + }, + "parameters": [ + { + "$ref": "#/components/parameters/org" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "oneOf": [ + { + "required": [ + "repository_ids_to_add" + ] + }, + { + "required": [ + "repository_ids_to_remove" + ] + } + ], + "properties": { + "repository_ids_to_add": { + "type": "array", + "items": { + "type": "integer" + } + }, + "repository_ids_to_remove": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "examples": { + "204": { + "summary": "Example with a 'succeeded' status." + } + } + } + } + }, + "responses": { + "204": { + "description": "Response" + }, + "403": { + "$ref": "#/components/responses/forbidden" + }, + "404": { + "$ref": "#/components/responses/not_found" + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "dependabot", + "subcategory": "repository-access" + } } }, "/organizations/{org}/dependabot/repository-access/default-level": { diff --git a/descriptions-next/api.github.com/api.github.com.2022-11-28.yaml b/descriptions-next/api.github.com/api.github.com.2022-11-28.yaml index 4b183756bc..7b47862f62 100644 --- a/descriptions-next/api.github.com/api.github.com.2022-11-28.yaml +++ b/descriptions-next/api.github.com/api.github.com.2022-11-28.yaml @@ -4500,6 +4500,56 @@ paths: enabledForGitHubApps: true category: dependabot subcategory: repository-access + patch: + summary: Updates repositories to the list of repositories that organization + admins have allowed Dependabot to access when updating dependencies. + description: |- + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + tags: + - dependabot + operationId: dependabot/update-repository-access-for-org + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + parameters: + - "$ref": "#/components/parameters/org" + requestBody: + required: true + content: + application/json: + schema: + type: object + oneOf: + - required: + - repository_ids_to_add + - required: + - repository_ids_to_remove + properties: + repository_ids_to_add: + type: array + items: + type: integer + repository_ids_to_remove: + type: array + items: + type: integer + examples: + '204': + summary: Example with a 'succeeded' status. + responses: + '204': + description: Response + '403': + "$ref": "#/components/responses/forbidden" + '404': + "$ref": "#/components/responses/not_found" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: dependabot + subcategory: repository-access "/organizations/{org}/dependabot/repository-access/default-level": put: summary: Set the default repository access level for Dependabot diff --git a/descriptions-next/api.github.com/api.github.com.json b/descriptions-next/api.github.com/api.github.com.json index 5c0ae6f207..4fffde0207 100644 --- a/descriptions-next/api.github.com/api.github.com.json +++ b/descriptions-next/api.github.com/api.github.com.json @@ -6379,6 +6379,81 @@ "category": "dependabot", "subcategory": "repository-access" } + }, + "patch": { + "summary": "Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.", + "description": "> [!NOTE]\n> This operation supports both server-to-server and user-to-server access.\nUnauthorized users will not see the existence of this endpoint.", + "tags": [ + "dependabot" + ], + "operationId": "dependabot/update-repository-access-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies" + }, + "parameters": [ + { + "$ref": "#/components/parameters/org" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "oneOf": [ + { + "required": [ + "repository_ids_to_add" + ] + }, + { + "required": [ + "repository_ids_to_remove" + ] + } + ], + "properties": { + "repository_ids_to_add": { + "type": "array", + "items": { + "type": "integer" + } + }, + "repository_ids_to_remove": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "examples": { + "204": { + "summary": "Example with a 'succeeded' status." + } + } + } + } + }, + "responses": { + "204": { + "description": "Response" + }, + "403": { + "$ref": "#/components/responses/forbidden" + }, + "404": { + "$ref": "#/components/responses/not_found" + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "dependabot", + "subcategory": "repository-access" + } } }, "/organizations/{org}/dependabot/repository-access/default-level": { diff --git a/descriptions-next/api.github.com/api.github.com.yaml b/descriptions-next/api.github.com/api.github.com.yaml index 4b183756bc..7b47862f62 100644 --- a/descriptions-next/api.github.com/api.github.com.yaml +++ b/descriptions-next/api.github.com/api.github.com.yaml @@ -4500,6 +4500,56 @@ paths: enabledForGitHubApps: true category: dependabot subcategory: repository-access + patch: + summary: Updates repositories to the list of repositories that organization + admins have allowed Dependabot to access when updating dependencies. + description: |- + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + tags: + - dependabot + operationId: dependabot/update-repository-access-for-org + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + parameters: + - "$ref": "#/components/parameters/org" + requestBody: + required: true + content: + application/json: + schema: + type: object + oneOf: + - required: + - repository_ids_to_add + - required: + - repository_ids_to_remove + properties: + repository_ids_to_add: + type: array + items: + type: integer + repository_ids_to_remove: + type: array + items: + type: integer + examples: + '204': + summary: Example with a 'succeeded' status. + responses: + '204': + description: Response + '403': + "$ref": "#/components/responses/forbidden" + '404': + "$ref": "#/components/responses/not_found" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: dependabot + subcategory: repository-access "/organizations/{org}/dependabot/repository-access/default-level": put: summary: Set the default repository access level for Dependabot diff --git a/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json b/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json index aafde8c662..54765577be 100644 --- a/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json +++ b/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json @@ -58766,6 +58766,133 @@ "category": "dependabot", "subcategory": "repository-access" } + }, + "patch": { + "summary": "Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.", + "description": "> [!NOTE]\n> This operation supports both server-to-server and user-to-server access.\nUnauthorized users will not see the existence of this endpoint.", + "tags": [ + "dependabot" + ], + "operationId": "dependabot/update-repository-access-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies" + }, + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "oneOf": [ + { + "required": [ + "repository_ids_to_add" + ] + }, + { + "required": [ + "repository_ids_to_remove" + ] + } + ], + "properties": { + "repository_ids_to_add": { + "type": "array", + "items": { + "type": "integer" + } + }, + "repository_ids_to_remove": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "examples": { + "204": { + "summary": "Example with a 'succeeded' status." + } + } + } + } + }, + "responses": { + "204": { + "description": "Response" + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + }, + "404": { + "description": "Resource not found", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "dependabot", + "subcategory": "repository-access" + } } }, "/organizations/{org}/dependabot/repository-access/default-level": { diff --git a/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml b/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml index cef30ad66d..d3b8a4496f 100644 --- a/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml +++ b/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml @@ -16016,6 +16016,54 @@ paths: enabledForGitHubApps: true category: dependabot subcategory: repository-access + patch: + summary: Updates repositories to the list of repositories that organization + admins have allowed Dependabot to access when updating dependencies. + description: |- + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + tags: + - dependabot + operationId: dependabot/update-repository-access-for-org + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + parameters: + - *90 + requestBody: + required: true + content: + application/json: + schema: + type: object + oneOf: + - required: + - repository_ids_to_add + - required: + - repository_ids_to_remove + properties: + repository_ids_to_add: + type: array + items: + type: integer + repository_ids_to_remove: + type: array + items: + type: integer + examples: + '204': + summary: Example with a 'succeeded' status. + responses: + '204': + description: Response + '403': *27 + '404': *6 + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: dependabot + subcategory: repository-access "/organizations/{org}/dependabot/repository-access/default-level": put: summary: Set the default repository access level for Dependabot diff --git a/descriptions-next/api.github.com/dereferenced/api.github.com.deref.json b/descriptions-next/api.github.com/dereferenced/api.github.com.deref.json index aafde8c662..54765577be 100644 --- a/descriptions-next/api.github.com/dereferenced/api.github.com.deref.json +++ b/descriptions-next/api.github.com/dereferenced/api.github.com.deref.json @@ -58766,6 +58766,133 @@ "category": "dependabot", "subcategory": "repository-access" } + }, + "patch": { + "summary": "Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.", + "description": "> [!NOTE]\n> This operation supports both server-to-server and user-to-server access.\nUnauthorized users will not see the existence of this endpoint.", + "tags": [ + "dependabot" + ], + "operationId": "dependabot/update-repository-access-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies" + }, + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "oneOf": [ + { + "required": [ + "repository_ids_to_add" + ] + }, + { + "required": [ + "repository_ids_to_remove" + ] + } + ], + "properties": { + "repository_ids_to_add": { + "type": "array", + "items": { + "type": "integer" + } + }, + "repository_ids_to_remove": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "examples": { + "204": { + "summary": "Example with a 'succeeded' status." + } + } + } + } + }, + "responses": { + "204": { + "description": "Response" + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + }, + "404": { + "description": "Resource not found", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "dependabot", + "subcategory": "repository-access" + } } }, "/organizations/{org}/dependabot/repository-access/default-level": { diff --git a/descriptions-next/api.github.com/dereferenced/api.github.com.deref.yaml b/descriptions-next/api.github.com/dereferenced/api.github.com.deref.yaml index cef30ad66d..d3b8a4496f 100644 --- a/descriptions-next/api.github.com/dereferenced/api.github.com.deref.yaml +++ b/descriptions-next/api.github.com/dereferenced/api.github.com.deref.yaml @@ -16016,6 +16016,54 @@ paths: enabledForGitHubApps: true category: dependabot subcategory: repository-access + patch: + summary: Updates repositories to the list of repositories that organization + admins have allowed Dependabot to access when updating dependencies. + description: |- + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + tags: + - dependabot + operationId: dependabot/update-repository-access-for-org + externalDocs: + description: API method documentation + url: https://docs.github.com/rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + parameters: + - *90 + requestBody: + required: true + content: + application/json: + schema: + type: object + oneOf: + - required: + - repository_ids_to_add + - required: + - repository_ids_to_remove + properties: + repository_ids_to_add: + type: array + items: + type: integer + repository_ids_to_remove: + type: array + items: + type: integer + examples: + '204': + summary: Example with a 'succeeded' status. + responses: + '204': + description: Response + '403': *27 + '404': *6 + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: dependabot + subcategory: repository-access "/organizations/{org}/dependabot/repository-access/default-level": put: summary: Set the default repository access level for Dependabot diff --git a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json index ae8a647fcf..d3bcabad2c 100644 --- a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json +++ b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json @@ -51724,7 +51724,7 @@ { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", @@ -86953,6 +86953,133 @@ "category": "dependabot", "subcategory": "repository-access" } + }, + "patch": { + "summary": "Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.", + "description": "> [!NOTE]\n> This operation supports both server-to-server and user-to-server access.\nUnauthorized users will not see the existence of this endpoint.", + "tags": [ + "dependabot" + ], + "operationId": "dependabot/update-repository-access-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies" + }, + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "oneOf": [ + { + "required": [ + "repository_ids_to_add" + ] + }, + { + "required": [ + "repository_ids_to_remove" + ] + } + ], + "properties": { + "repository_ids_to_add": { + "type": "array", + "items": { + "type": "integer" + } + }, + "repository_ids_to_remove": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "examples": { + "204": { + "summary": "Example with a 'succeeded' status." + } + } + } + } + }, + "responses": { + "204": { + "description": "Response" + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + }, + "404": { + "description": "Resource not found", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "dependabot", + "subcategory": "repository-access" + } } }, "/organizations/{org}/dependabot/repository-access/default-level": { @@ -195980,7 +196107,7 @@ { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", diff --git a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml index 7aae12eb43..be4791eca5 100644 --- a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml +++ b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml @@ -18650,10 +18650,10 @@ paths: - &336 name: advanced_security_product in: query - description: The security product to get GitHub Advanced Security active committers - for. This parameter is required if you have purchased standalone Code Scanning - or Secret Protection products to specify which one you want to get the committer - information for, otherwise it is not required. + description: | + The security product to get GitHub Advanced Security active committers for. + + For standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used. required: false schema: type: string @@ -25251,6 +25251,54 @@ paths: enabledForGitHubApps: true category: dependabot subcategory: repository-access + patch: + summary: Updates repositories to the list of repositories that organization + admins have allowed Dependabot to access when updating dependencies. + description: |- + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + tags: + - dependabot + operationId: dependabot/update-repository-access-for-org + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + parameters: + - *165 + requestBody: + required: true + content: + application/json: + schema: + type: object + oneOf: + - required: + - repository_ids_to_add + - required: + - repository_ids_to_remove + properties: + repository_ids_to_add: + type: array + items: + type: integer + repository_ids_to_remove: + type: array + items: + type: integer + examples: + '204': + summary: Example with a 'succeeded' status. + responses: + '204': + description: Response + '403': *27 + '404': *6 + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: dependabot + subcategory: repository-access "/organizations/{org}/dependabot/repository-access/default-level": put: summary: Set the default repository access level for Dependabot diff --git a/descriptions-next/ghec/dereferenced/ghec.deref.json b/descriptions-next/ghec/dereferenced/ghec.deref.json index ae8a647fcf..d3bcabad2c 100644 --- a/descriptions-next/ghec/dereferenced/ghec.deref.json +++ b/descriptions-next/ghec/dereferenced/ghec.deref.json @@ -51724,7 +51724,7 @@ { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", @@ -86953,6 +86953,133 @@ "category": "dependabot", "subcategory": "repository-access" } + }, + "patch": { + "summary": "Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.", + "description": "> [!NOTE]\n> This operation supports both server-to-server and user-to-server access.\nUnauthorized users will not see the existence of this endpoint.", + "tags": [ + "dependabot" + ], + "operationId": "dependabot/update-repository-access-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies" + }, + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "oneOf": [ + { + "required": [ + "repository_ids_to_add" + ] + }, + { + "required": [ + "repository_ids_to_remove" + ] + } + ], + "properties": { + "repository_ids_to_add": { + "type": "array", + "items": { + "type": "integer" + } + }, + "repository_ids_to_remove": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "examples": { + "204": { + "summary": "Example with a 'succeeded' status." + } + } + } + } + }, + "responses": { + "204": { + "description": "Response" + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + }, + "404": { + "description": "Resource not found", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "dependabot", + "subcategory": "repository-access" + } } }, "/organizations/{org}/dependabot/repository-access/default-level": { @@ -195980,7 +196107,7 @@ { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", diff --git a/descriptions-next/ghec/dereferenced/ghec.deref.yaml b/descriptions-next/ghec/dereferenced/ghec.deref.yaml index 7aae12eb43..be4791eca5 100644 --- a/descriptions-next/ghec/dereferenced/ghec.deref.yaml +++ b/descriptions-next/ghec/dereferenced/ghec.deref.yaml @@ -18650,10 +18650,10 @@ paths: - &336 name: advanced_security_product in: query - description: The security product to get GitHub Advanced Security active committers - for. This parameter is required if you have purchased standalone Code Scanning - or Secret Protection products to specify which one you want to get the committer - information for, otherwise it is not required. + description: | + The security product to get GitHub Advanced Security active committers for. + + For standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used. required: false schema: type: string @@ -25251,6 +25251,54 @@ paths: enabledForGitHubApps: true category: dependabot subcategory: repository-access + patch: + summary: Updates repositories to the list of repositories that organization + admins have allowed Dependabot to access when updating dependencies. + description: |- + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + tags: + - dependabot + operationId: dependabot/update-repository-access-for-org + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + parameters: + - *165 + requestBody: + required: true + content: + application/json: + schema: + type: object + oneOf: + - required: + - repository_ids_to_add + - required: + - repository_ids_to_remove + properties: + repository_ids_to_add: + type: array + items: + type: integer + repository_ids_to_remove: + type: array + items: + type: integer + examples: + '204': + summary: Example with a 'succeeded' status. + responses: + '204': + description: Response + '403': *27 + '404': *6 + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: dependabot + subcategory: repository-access "/organizations/{org}/dependabot/repository-access/default-level": put: summary: Set the default repository access level for Dependabot diff --git a/descriptions-next/ghec/ghec.2022-11-28.json b/descriptions-next/ghec/ghec.2022-11-28.json index 43c1ac6d0b..da0701b49b 100644 --- a/descriptions-next/ghec/ghec.2022-11-28.json +++ b/descriptions-next/ghec/ghec.2022-11-28.json @@ -12161,6 +12161,81 @@ "category": "dependabot", "subcategory": "repository-access" } + }, + "patch": { + "summary": "Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.", + "description": "> [!NOTE]\n> This operation supports both server-to-server and user-to-server access.\nUnauthorized users will not see the existence of this endpoint.", + "tags": [ + "dependabot" + ], + "operationId": "dependabot/update-repository-access-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies" + }, + "parameters": [ + { + "$ref": "#/components/parameters/org" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "oneOf": [ + { + "required": [ + "repository_ids_to_add" + ] + }, + { + "required": [ + "repository_ids_to_remove" + ] + } + ], + "properties": { + "repository_ids_to_add": { + "type": "array", + "items": { + "type": "integer" + } + }, + "repository_ids_to_remove": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "examples": { + "204": { + "summary": "Example with a 'succeeded' status." + } + } + } + } + }, + "responses": { + "204": { + "description": "Response" + }, + "403": { + "$ref": "#/components/responses/forbidden" + }, + "404": { + "$ref": "#/components/responses/not_found" + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "dependabot", + "subcategory": "repository-access" + } } }, "/organizations/{org}/dependabot/repository-access/default-level": { @@ -326927,7 +327002,7 @@ "advanced-security-product": { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", diff --git a/descriptions-next/ghec/ghec.2022-11-28.yaml b/descriptions-next/ghec/ghec.2022-11-28.yaml index 3f6baf703d..dc1b23c48c 100644 --- a/descriptions-next/ghec/ghec.2022-11-28.yaml +++ b/descriptions-next/ghec/ghec.2022-11-28.yaml @@ -8617,6 +8617,56 @@ paths: enabledForGitHubApps: true category: dependabot subcategory: repository-access + patch: + summary: Updates repositories to the list of repositories that organization + admins have allowed Dependabot to access when updating dependencies. + description: |- + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + tags: + - dependabot + operationId: dependabot/update-repository-access-for-org + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + parameters: + - "$ref": "#/components/parameters/org" + requestBody: + required: true + content: + application/json: + schema: + type: object + oneOf: + - required: + - repository_ids_to_add + - required: + - repository_ids_to_remove + properties: + repository_ids_to_add: + type: array + items: + type: integer + repository_ids_to_remove: + type: array + items: + type: integer + examples: + '204': + summary: Example with a 'succeeded' status. + responses: + '204': + description: Response + '403': + "$ref": "#/components/responses/forbidden" + '404': + "$ref": "#/components/responses/not_found" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: dependabot + subcategory: repository-access "/organizations/{org}/dependabot/repository-access/default-level": put: summary: Set the default repository access level for Dependabot @@ -244322,10 +244372,10 @@ components: advanced-security-product: name: advanced_security_product in: query - description: The security product to get GitHub Advanced Security active committers - for. This parameter is required if you have purchased standalone Code Scanning - or Secret Protection products to specify which one you want to get the committer - information for, otherwise it is not required. + description: | + The security product to get GitHub Advanced Security active committers for. + + For standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used. required: false schema: type: string diff --git a/descriptions-next/ghec/ghec.json b/descriptions-next/ghec/ghec.json index 43c1ac6d0b..da0701b49b 100644 --- a/descriptions-next/ghec/ghec.json +++ b/descriptions-next/ghec/ghec.json @@ -12161,6 +12161,81 @@ "category": "dependabot", "subcategory": "repository-access" } + }, + "patch": { + "summary": "Updates repositories to the list of repositories that organization admins have allowed Dependabot to access when updating dependencies.", + "description": "> [!NOTE]\n> This operation supports both server-to-server and user-to-server access.\nUnauthorized users will not see the existence of this endpoint.", + "tags": [ + "dependabot" + ], + "operationId": "dependabot/update-repository-access-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies" + }, + "parameters": [ + { + "$ref": "#/components/parameters/org" + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "oneOf": [ + { + "required": [ + "repository_ids_to_add" + ] + }, + { + "required": [ + "repository_ids_to_remove" + ] + } + ], + "properties": { + "repository_ids_to_add": { + "type": "array", + "items": { + "type": "integer" + } + }, + "repository_ids_to_remove": { + "type": "array", + "items": { + "type": "integer" + } + } + } + }, + "examples": { + "204": { + "summary": "Example with a 'succeeded' status." + } + } + } + } + }, + "responses": { + "204": { + "description": "Response" + }, + "403": { + "$ref": "#/components/responses/forbidden" + }, + "404": { + "$ref": "#/components/responses/not_found" + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "dependabot", + "subcategory": "repository-access" + } } }, "/organizations/{org}/dependabot/repository-access/default-level": { @@ -326927,7 +327002,7 @@ "advanced-security-product": { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", diff --git a/descriptions-next/ghec/ghec.yaml b/descriptions-next/ghec/ghec.yaml index 3f6baf703d..dc1b23c48c 100644 --- a/descriptions-next/ghec/ghec.yaml +++ b/descriptions-next/ghec/ghec.yaml @@ -8617,6 +8617,56 @@ paths: enabledForGitHubApps: true category: dependabot subcategory: repository-access + patch: + summary: Updates repositories to the list of repositories that organization + admins have allowed Dependabot to access when updating dependencies. + description: |- + > [!NOTE] + > This operation supports both server-to-server and user-to-server access. + Unauthorized users will not see the existence of this endpoint. + tags: + - dependabot + operationId: dependabot/update-repository-access-for-org + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/repository-access#updates-repositories-to-the-list-of-repositories-that-organization-admins-have-allowed-dependabot-to-access-when-updating-dependencies + parameters: + - "$ref": "#/components/parameters/org" + requestBody: + required: true + content: + application/json: + schema: + type: object + oneOf: + - required: + - repository_ids_to_add + - required: + - repository_ids_to_remove + properties: + repository_ids_to_add: + type: array + items: + type: integer + repository_ids_to_remove: + type: array + items: + type: integer + examples: + '204': + summary: Example with a 'succeeded' status. + responses: + '204': + description: Response + '403': + "$ref": "#/components/responses/forbidden" + '404': + "$ref": "#/components/responses/not_found" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: dependabot + subcategory: repository-access "/organizations/{org}/dependabot/repository-access/default-level": put: summary: Set the default repository access level for Dependabot @@ -244322,10 +244372,10 @@ components: advanced-security-product: name: advanced_security_product in: query - description: The security product to get GitHub Advanced Security active committers - for. This parameter is required if you have purchased standalone Code Scanning - or Secret Protection products to specify which one you want to get the committer - information for, otherwise it is not required. + description: | + The security product to get GitHub Advanced Security active committers for. + + For standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used. required: false schema: type: string diff --git a/descriptions-next/ghes-3.17/dereferenced/ghes-3.17.2022-11-28.deref.json b/descriptions-next/ghes-3.17/dereferenced/ghes-3.17.2022-11-28.deref.json index 82aa026cd1..b1f3dc0c6f 100644 --- a/descriptions-next/ghes-3.17/dereferenced/ghes-3.17.2022-11-28.deref.json +++ b/descriptions-next/ghes-3.17/dereferenced/ghes-3.17.2022-11-28.deref.json @@ -52079,7 +52079,7 @@ { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", @@ -165186,7 +165186,7 @@ { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", diff --git a/descriptions-next/ghes-3.17/dereferenced/ghes-3.17.2022-11-28.deref.yaml b/descriptions-next/ghes-3.17/dereferenced/ghes-3.17.2022-11-28.deref.yaml index 6e321dd274..3c599618a0 100644 --- a/descriptions-next/ghes-3.17/dereferenced/ghes-3.17.2022-11-28.deref.yaml +++ b/descriptions-next/ghes-3.17/dereferenced/ghes-3.17.2022-11-28.deref.yaml @@ -16615,10 +16615,10 @@ paths: - &285 name: advanced_security_product in: query - description: The security product to get GitHub Advanced Security active committers - for. This parameter is required if you have purchased standalone Code Scanning - or Secret Protection products to specify which one you want to get the committer - information for, otherwise it is not required. + description: | + The security product to get GitHub Advanced Security active committers for. + + For standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used. required: false schema: type: string diff --git a/descriptions-next/ghes-3.17/dereferenced/ghes-3.17.deref.json b/descriptions-next/ghes-3.17/dereferenced/ghes-3.17.deref.json index 82aa026cd1..b1f3dc0c6f 100644 --- a/descriptions-next/ghes-3.17/dereferenced/ghes-3.17.deref.json +++ b/descriptions-next/ghes-3.17/dereferenced/ghes-3.17.deref.json @@ -52079,7 +52079,7 @@ { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", @@ -165186,7 +165186,7 @@ { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", diff --git a/descriptions-next/ghes-3.17/dereferenced/ghes-3.17.deref.yaml b/descriptions-next/ghes-3.17/dereferenced/ghes-3.17.deref.yaml index 6e321dd274..3c599618a0 100644 --- a/descriptions-next/ghes-3.17/dereferenced/ghes-3.17.deref.yaml +++ b/descriptions-next/ghes-3.17/dereferenced/ghes-3.17.deref.yaml @@ -16615,10 +16615,10 @@ paths: - &285 name: advanced_security_product in: query - description: The security product to get GitHub Advanced Security active committers - for. This parameter is required if you have purchased standalone Code Scanning - or Secret Protection products to specify which one you want to get the committer - information for, otherwise it is not required. + description: | + The security product to get GitHub Advanced Security active committers for. + + For standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used. required: false schema: type: string diff --git a/descriptions-next/ghes-3.17/ghes-3.17.2022-11-28.json b/descriptions-next/ghes-3.17/ghes-3.17.2022-11-28.json index 9e14520a58..92597ff86c 100644 --- a/descriptions-next/ghes-3.17/ghes-3.17.2022-11-28.json +++ b/descriptions-next/ghes-3.17/ghes-3.17.2022-11-28.json @@ -298167,7 +298167,7 @@ "advanced-security-product": { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", diff --git a/descriptions-next/ghes-3.17/ghes-3.17.2022-11-28.yaml b/descriptions-next/ghes-3.17/ghes-3.17.2022-11-28.yaml index 5a7ad439ac..8f69b17367 100644 --- a/descriptions-next/ghes-3.17/ghes-3.17.2022-11-28.yaml +++ b/descriptions-next/ghes-3.17/ghes-3.17.2022-11-28.yaml @@ -222221,10 +222221,10 @@ components: advanced-security-product: name: advanced_security_product in: query - description: The security product to get GitHub Advanced Security active committers - for. This parameter is required if you have purchased standalone Code Scanning - or Secret Protection products to specify which one you want to get the committer - information for, otherwise it is not required. + description: | + The security product to get GitHub Advanced Security active committers for. + + For standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used. required: false schema: type: string diff --git a/descriptions-next/ghes-3.17/ghes-3.17.json b/descriptions-next/ghes-3.17/ghes-3.17.json index 9e14520a58..92597ff86c 100644 --- a/descriptions-next/ghes-3.17/ghes-3.17.json +++ b/descriptions-next/ghes-3.17/ghes-3.17.json @@ -298167,7 +298167,7 @@ "advanced-security-product": { "name": "advanced_security_product", "in": "query", - "description": "The security product to get GitHub Advanced Security active committers for. This parameter is required if you have purchased standalone Code Scanning or Secret Protection products to specify which one you want to get the committer information for, otherwise it is not required.", + "description": "The security product to get GitHub Advanced Security active committers for.\n\nFor standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used.\n", "required": false, "schema": { "type": "string", diff --git a/descriptions-next/ghes-3.17/ghes-3.17.yaml b/descriptions-next/ghes-3.17/ghes-3.17.yaml index 5a7ad439ac..8f69b17367 100644 --- a/descriptions-next/ghes-3.17/ghes-3.17.yaml +++ b/descriptions-next/ghes-3.17/ghes-3.17.yaml @@ -222221,10 +222221,10 @@ components: advanced-security-product: name: advanced_security_product in: query - description: The security product to get GitHub Advanced Security active committers - for. This parameter is required if you have purchased standalone Code Scanning - or Secret Protection products to specify which one you want to get the committer - information for, otherwise it is not required. + description: | + The security product to get GitHub Advanced Security active committers for. + + For standalone Code Scanning or Secret Protection products, this parameter is required to specify which product you want committer information for. For other plans this parameter cannot be used. required: false schema: type: string