put:
  x-eov-operation-id: transferCredential
  x-eov-operation-handler: v1/handlers/credentials/credentials.handler
  tags:
    - Credential
  summary: Transfer a credential to another project.
  description: Transfer a credential to another project.
  parameters:
    - $ref: '../schemas/parameters/credentialId.yml'
  requestBody:
    description: Destination project for the credential transfer.
    content:
      application/json:
        schema:
          type: object
          properties:
            destinationProjectId:
              type: string
              description: The ID of the project to transfer the credential to.
          required:
            - destinationProjectId
    required: true
  responses:
    '200':
      description: Operation successful.
    '400':
      $ref: '../../../../shared/spec/responses/badRequest.yml'
    '401':
      $ref: '../../../../shared/spec/responses/unauthorized.yml'
    '404':
      $ref: '../../../../shared/spec/responses/notFound.yml'
