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

# Update creditor profile contact

> Update a contact that belongs to an editable creditor profile.



## OpenAPI

````yaml /api/ecomailhub.openapi.yaml patch /manage-creditor-profiles/{creditorProfile}/contacts/{contact}
openapi: 3.1.0
info:
  title: YouNegotiate EcoMail Hub API
  version: '2.0'
  description: Stateless API endpoints for EcoMail Hub / EcoPortal users.
servers:
  - url: https://api.ecomailhub.younegotiate.com
    description: Production
security: []
tags:
  - name: System
    description: Public EcoMail Hub domain system and health endpoints.
  - name: Authentication
    description: EcoMail Hub login, logout, password reset, and password change endpoints.
  - name: Profile
    description: Authenticated EcoMail Hub user profile endpoints.
  - name: Dashboard
    description: EcoMail Hub dashboard summary and notice-response bucket endpoints.
  - name: Manage Consumers
    description: >-
      EcoMail Hub consumer identity grouping and notice-response count
      endpoints.
  - name: Manage Creditors
    description: >-
      EcoMail Hub creditor profile and company-only member profile table
      endpoints.
  - name: Import Creditor Profiles
    description: EcoMail Hub creditor profile CSV import endpoints.
  - name: Manage Notice Response
    description: >-
      EcoMail Hub top-level notice-response review, reassignment, and close
      endpoints.
  - name: Manage Users
    description: EcoMail Hub user account management endpoints.
  - name: Reports
    description: EcoMail Hub one-time and scheduled CSV report endpoints.
  - name: Communications
    description: EcoMail Hub communication template editor endpoints.
paths:
  /manage-creditor-profiles/{creditorProfile}/contacts/{contact}:
    patch:
      tags:
        - Manage Creditors
      summary: Update creditor profile contact
      description: Update a contact that belongs to an editable creditor profile.
      operationId: ecomailhubUpdateManageCreditorProfileContact
      parameters:
        - name: creditorProfile
          in: path
          required: true
          schema:
            type: integer
          description: Creditor profile ID from the manage creditors list.
        - name: contact
          in: path
          required: true
          schema:
            type: integer
          description: Creditor profile contact ID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ManageCreditorProfileContactRequest'
            example:
              first_name: Nora
              last_name: Banks
              email: nora@example.test
              phone: '8186012222'
      responses:
        '200':
          description: Creditor profile contact updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManageCreditorProfileContactResponse'
              example:
                message: Contact has been updated successfully to the creditor profile.
                data:
                  id: 3
                  first_name: Nora
                  last_name: Banks
                  email: nora@example.test
                  phone: '8186012222'
                  phone_label: (818) 601-2222
        '401':
          $ref: '#/components/responses/Unauthenticated'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: Creditor profile is active-company backed and cannot be edited.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
              example:
                message: Sorry, you cannot edit the profile of an active company.
        '422':
          $ref: '#/components/responses/ValidationError'
      security:
        - bearerAuth: []
components:
  schemas:
    ManageCreditorProfileContactRequest:
      type: object
      required:
        - first_name
        - last_name
        - email
        - phone
      properties:
        first_name:
          type: string
          minLength: 2
          maxLength: 20
          example: Nancy
        last_name:
          type: string
          minLength: 2
          maxLength: 30
          example: Williams
        email:
          type: string
          format: email
          maxLength: 255
          example: nancy@example.test
        phone:
          type: string
          description: US phone number.
          example: '8186011111'
    ManageCreditorProfileContactResponse:
      type: object
      required:
        - message
        - data
      properties:
        message:
          type: string
          example: Contact has been saved successfully to the creditor profile.
        data:
          $ref: '#/components/schemas/EcomailhubCreditorProfileContact'
    MessageResponse:
      type: object
      required:
        - message
      properties:
        message:
          type: string
    EcomailhubCreditorProfileContact:
      type: object
      required:
        - id
        - first_name
        - last_name
        - email
        - phone
        - phone_label
      properties:
        id:
          type: integer
          example: 3
        first_name:
          type: string
          example: Nancy
        last_name:
          type: string
          example: Williams
        email:
          type: string
          format: email
          example: nancy@example.test
        phone:
          type: string
          example: '8186011111'
        phone_label:
          type:
            - string
            - 'null'
          example: (818) 601-1111
    ValidationErrorResponse:
      type: object
      required:
        - message
        - errors
      properties:
        message:
          type: string
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
  responses:
    Unauthenticated:
      description: Missing or invalid bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/MessageResponse'
          example:
            message: Unauthenticated.
    NotFound:
      description: Requested resource was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/MessageResponse'
          example:
            message: Not Found.
    ValidationError:
      description: Request validation failed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ValidationErrorResponse'
          example:
            message: The given data was invalid.
            errors:
              email:
                - The email field is required.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Sanctum

````