get:
  x-eov-operation-id: getCredential
  x-eov-operation-handler: v1/handlers/credentials/credentials.handler
  tags:
    - Credential
  summary: Get credential by ID
  description: Retrieves a credential by ID. Credential data (secrets) is not included.
  operationId: getCredential
  parameters:
    - name: id
      in: path
      description: The credential ID
      required: true
      schema:
        type: string
  responses:
    '200':
      description: Operation successful.
      content:
        application/json:
          schema:
            $ref: '../schemas/create-credential-response.yml'
    '401':
      $ref: '../../../../shared/spec/responses/unauthorized.yml'
    '403':
      $ref: '../../../../shared/spec/responses/forbidden.yml'
    '404':
      $ref: '../../../../shared/spec/responses/notFound.yml'
patch:
  x-eov-operation-id: updateCredential
  x-eov-operation-handler: v1/handlers/credentials/credentials.handler
  tags:
    - Credential
  summary: Update credential by ID
  description: Updates an existing credential. You must be the owner of the credential.
  operationId: updateCredential
  parameters:
    - name: id
      in: path
      description: The credential ID that needs to be updated
      required: true
      schema:
        type: string
  requestBody:
    description: Credential data to update. All fields are optional.
    required: true
    content:
      application/json:
        schema:
          $ref: '../schemas/update-credential-request.yml'
  responses:
    '200':
      description: Operation successful.
      content:
        application/json:
          schema:
            $ref: '../schemas/create-credential-response.yml'
    '400':
      description: Bad request - invalid credential type or data.
    '401':
      $ref: '../../../../shared/spec/responses/unauthorized.yml'
    '404':
      $ref: '../../../../shared/spec/responses/notFound.yml'
delete:
  x-eov-operation-id: deleteCredential
  x-eov-operation-handler: v1/handlers/credentials/credentials.handler
  tags:
    - Credential
  summary: Delete credential by ID
  description: Deletes a credential from your instance. You must be the owner of the credentials
  operationId: deleteCredential
  parameters:
    - name: id
      in: path
      description: The credential ID that needs to be deleted
      required: true
      schema:
        type: string
  responses:
    '200':
      description: Operation successful.
      content:
        application/json:
          schema:
            $ref: '../schemas/credential.yml'
    '401':
      $ref: '../../../../shared/spec/responses/unauthorized.yml'
    '404':
      $ref: '../../../../shared/spec/responses/notFound.yml'
