---
title: "POST /UpdateIntegratedResources"
method: POST
path: "/UpdateIntegratedResources"
---

# POST /UpdateIntegratedResources

`POST /UpdateIntegratedResources`

Updates the integrated resources for an agent space, including their capabilities.

## Request body

- object
  - `agentSpaceId` string, required — Unique identifier of the agent space.
  - `integrationId` string, required — Unique identifier for an integration.
  - `items` IntegratedResourceInputItem[], required — List of integrated resources.
    - `resource` object, required — The integrated resource to update.
      - `githubRepository` object — The GitHub repository resource information.
        - `name` string, required — The name of the GitHub repository.
        - `owner` string, required — The owner of the GitHub repository.
      - `gitlabRepository` GitLabRepositoryResource — A GitLab repository integrated as a resource.
        - `name` string, required — Name of the resource e.g. repository name, etc.
        - `namespace` string, required — The namespace (group or user path) that owns the project.
      - `bitbucketRepository` BitbucketRepositoryResource — A Bitbucket repository integrated as a resource.
        - `name` string, required — Name of the resource e.g. repository name, etc.
        - `workspace` string, required — The workspace slug that owns the repository.
      - `confluenceDocument` ConfluenceDocumentResource — A Confluence document (page) integrated as a resource.
        - `name` string, required — Name of the resource e.g. repository name, etc.
        - `spaceKey` string, required — The Confluence space key containing the document.
        - `pageId` string, required — The Confluence page identifier.
        - `title` string — The display title of the Confluence page.
        - `spaceTitle` string — The display title of the Confluence space.
    - `capabilities` object — The capabilities to enable for the integrated resource.
      - `github` object — The GitHub-specific resource capabilities.
        - `leaveComments` boolean — Indicates whether the integration can leave comments on pull requests.
        - `remediateCode` boolean — Indicates whether the integration can create code remediation pull requests.
      - `gitlab` GitLabResourceCapabilities — Capabilities for an integrated GitLab repository.
        - `leaveComments` boolean — Whether to post code review comments on merge request discussions.
        - `remediateCode` boolean — Whether to create merge requests with automated fixes.
      - `bitbucket` BitbucketResourceCapabilities — Capabilities for an integrated Bitbucket repository.
        - `leaveComments` boolean — Whether to post code review comments on pull requests.
        - `remediateCode` boolean — Whether to create pull requests with automated fixes.
      - `confluence` ConfluenceResourceCapabilities — Capabilities for an integrated Confluence space.
        - `fetchDocument` boolean — Whether to fetch documents from this space.
        - `createDocument` boolean — Whether to create documents in this space.
        - `updateDocument` boolean — Whether to update documents in this space.

## Response `200`

Success

- UpdateIntegratedResourcesOutput

## Other responses

- `480` — ValidationException
- `481` — ResourceNotFoundException
- `482` — InternalServerException
- `483` — ConflictException
- `484` — ThrottlingException
- `485` — AccessDeniedException

---

[API](https://skmtc.net/aws/apis/securityagent.md) · [All operations](https://skmtc.net/aws/apis/securityagent/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/securityagent/versions/cad56717d636/schema)
