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..45bd27976f 100644 --- a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json +++ b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json @@ -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": { 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..080f95a87b 100644 --- a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml +++ b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml @@ -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..45bd27976f 100644 --- a/descriptions-next/ghec/dereferenced/ghec.deref.json +++ b/descriptions-next/ghec/dereferenced/ghec.deref.json @@ -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": { diff --git a/descriptions-next/ghec/dereferenced/ghec.deref.yaml b/descriptions-next/ghec/dereferenced/ghec.deref.yaml index 7aae12eb43..080f95a87b 100644 --- a/descriptions-next/ghec/dereferenced/ghec.deref.yaml +++ b/descriptions-next/ghec/dereferenced/ghec.deref.yaml @@ -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..100f690a6a 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": { diff --git a/descriptions-next/ghec/ghec.2022-11-28.yaml b/descriptions-next/ghec/ghec.2022-11-28.yaml index 3f6baf703d..a855fe4fe5 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 diff --git a/descriptions-next/ghec/ghec.json b/descriptions-next/ghec/ghec.json index 43c1ac6d0b..100f690a6a 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": { diff --git a/descriptions-next/ghec/ghec.yaml b/descriptions-next/ghec/ghec.yaml index 3f6baf703d..a855fe4fe5 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