diff --git a/descriptions/api.github.com/api.github.com.2022-11-28.json b/descriptions/api.github.com/api.github.com.2022-11-28.json index 069d080303..ba71abed70 100644 --- a/descriptions/api.github.com/api.github.com.2022-11-28.json +++ b/descriptions/api.github.com/api.github.com.2022-11-28.json @@ -6341,6 +6341,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/api.github.com/api.github.com.2022-11-28.yaml b/descriptions/api.github.com/api.github.com.2022-11-28.yaml index 7b892aa05f..d85c2d5770 100644 --- a/descriptions/api.github.com/api.github.com.2022-11-28.yaml +++ b/descriptions/api.github.com/api.github.com.2022-11-28.yaml @@ -4483,6 +4483,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/api.github.com/api.github.com.json b/descriptions/api.github.com/api.github.com.json index 069d080303..ba71abed70 100644 --- a/descriptions/api.github.com/api.github.com.json +++ b/descriptions/api.github.com/api.github.com.json @@ -6341,6 +6341,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/api.github.com/api.github.com.yaml b/descriptions/api.github.com/api.github.com.yaml index 7b892aa05f..d85c2d5770 100644 --- a/descriptions/api.github.com/api.github.com.yaml +++ b/descriptions/api.github.com/api.github.com.yaml @@ -4483,6 +4483,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/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json b/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json index eb97a657b1..8673583a3c 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json +++ b/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json @@ -50750,6 +50750,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/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml b/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml index bdc4b8bd7d..fe1ca41cc1 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml +++ b/descriptions/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml @@ -15468,6 +15468,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: + - *94 + 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': *29 + '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/api.github.com/dereferenced/api.github.com.deref.json b/descriptions/api.github.com/dereferenced/api.github.com.deref.json index eb97a657b1..8673583a3c 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.deref.json +++ b/descriptions/api.github.com/dereferenced/api.github.com.deref.json @@ -50750,6 +50750,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/api.github.com/dereferenced/api.github.com.deref.yaml b/descriptions/api.github.com/dereferenced/api.github.com.deref.yaml index bdc4b8bd7d..fe1ca41cc1 100644 --- a/descriptions/api.github.com/dereferenced/api.github.com.deref.yaml +++ b/descriptions/api.github.com/dereferenced/api.github.com.deref.yaml @@ -15468,6 +15468,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: + - *94 + 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': *29 + '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/ghec/dereferenced/ghec.2022-11-28.deref.json b/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.json index 539e7a2290..3f8f6307f8 100644 --- a/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.json +++ b/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.json @@ -77147,6 +77147,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/ghec/dereferenced/ghec.2022-11-28.deref.yaml b/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.yaml index a3efde4d14..586cbf3f22 100644 --- a/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.yaml +++ b/descriptions/ghec/dereferenced/ghec.2022-11-28.deref.yaml @@ -24540,6 +24540,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: + - *172 + 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': *29 + '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/ghec/dereferenced/ghec.deref.json b/descriptions/ghec/dereferenced/ghec.deref.json index 539e7a2290..3f8f6307f8 100644 --- a/descriptions/ghec/dereferenced/ghec.deref.json +++ b/descriptions/ghec/dereferenced/ghec.deref.json @@ -77147,6 +77147,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/ghec/dereferenced/ghec.deref.yaml b/descriptions/ghec/dereferenced/ghec.deref.yaml index a3efde4d14..586cbf3f22 100644 --- a/descriptions/ghec/dereferenced/ghec.deref.yaml +++ b/descriptions/ghec/dereferenced/ghec.deref.yaml @@ -24540,6 +24540,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: + - *172 + 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': *29 + '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/ghec/ghec.2022-11-28.json b/descriptions/ghec/ghec.2022-11-28.json index ef52f7cffb..2e768cf2f3 100644 --- a/descriptions/ghec/ghec.2022-11-28.json +++ b/descriptions/ghec/ghec.2022-11-28.json @@ -12111,6 +12111,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/ghec/ghec.2022-11-28.yaml b/descriptions/ghec/ghec.2022-11-28.yaml index ed829f68e6..ca6ec3d2af 100644 --- a/descriptions/ghec/ghec.2022-11-28.yaml +++ b/descriptions/ghec/ghec.2022-11-28.yaml @@ -8594,6 +8594,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/ghec/ghec.json b/descriptions/ghec/ghec.json index ef52f7cffb..2e768cf2f3 100644 --- a/descriptions/ghec/ghec.json +++ b/descriptions/ghec/ghec.json @@ -12111,6 +12111,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/ghec/ghec.yaml b/descriptions/ghec/ghec.yaml index ed829f68e6..ca6ec3d2af 100644 --- a/descriptions/ghec/ghec.yaml +++ b/descriptions/ghec/ghec.yaml @@ -8594,6 +8594,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