> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cybedefend.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set projects linked to an ECR credential

> Replaces the full set of projects linked to an organization-level ECR credential. An empty array unlinks the credential from every project.



## OpenAPI

````yaml put /integrations/ecr/container-registry/organization/{organizationId}/credentials/{credentialId}/projects
openapi: 3.0.0
info:
  title: Cybedefend API
  description: >-
    CybeDefend is an advanced API for application security analysis. Key
    features include OAuth 2.0 authentication, user/organization/project
    management, and REBAC-based permissions. It excels in static, dynamic, and
    IaC security analyses (SAST, DAST, IaC, etc.).
  version: '1.0'
  contact: {}
servers:
  - url: https://api-eu.cybedefend.com
    description: EU
  - url: https://api-us.cybedefend.com
    description: US
security: []
tags: []
paths:
  /integrations/ecr/container-registry/organization/{organizationId}/credentials/{credentialId}/projects:
    put:
      tags:
        - ECR Container Registry
      summary: Set projects linked to an ECR credential
      description: >-
        Replaces the full set of projects linked to an organization-level ECR
        credential. An empty array unlinks the credential from every project.
      operationId: EcrContainerRegistryOrganizationController_setCredentialProjects
      parameters:
        - name: organizationId
          required: true
          in: path
          description: CybeDefend organization ID
          schema:
            format: uuid
            example: 550e8400-e29b-41d4-a716-446655440000
            type: string
        - name: credentialId
          required: true
          in: path
          description: Credential ID
          schema:
            format: uuid
            example: 550e8400-e29b-41d4-a716-446655440001
            type: string
      requestBody:
        required: true
        description: Full set of linked project ids (replaces existing links)
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EcrSetCredentialProjectsDto'
      responses:
        '200':
          description: Linked projects updated successfully
        '400':
          description: Invalid request body
          content:
            application/json:
              schema:
                example:
                  message: Bad Request
                  statusCode: 400
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
        '401':
          description: Unauthorized - Invalid or missing authentication token
          content:
            application/json:
              schema:
                example:
                  message: Unauthorized
                  statusCode: 401
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
        '403':
          description: Forbidden - Insufficient permissions to manage integrations
          content:
            application/json:
              schema:
                example:
                  message: Forbidden
                  statusCode: 403
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
        '404':
          description: Credential not found
          content:
            application/json:
              schema:
                example:
                  message: Resource not found
                  statusCode: 404
                  timestamp: '2025-02-18T12:31:18.491Z'
                  path: /example/path
components:
  schemas:
    EcrSetCredentialProjectsDto:
      type: object
      properties:
        projectIds:
          description: Full set of linked project ids (replaces existing links)
          type: array
          items:
            type: string
      required:
        - projectIds

````