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

# Update client (client portal)

> Update client information from client portal including name, phone, business type, EIN, FYE, NAICS code, address, contacts, external contacts, and locations. Sends notifications to related users.



## OpenAPI

````yaml /api-reference/cx/swagger.json patch /cp/{client}
openapi: 3.0.0
info:
  description: CX API.
  title: CX API
  contact:
    name: API Support
    url: https://stax.ai
    email: support@stax.ai
  version: '1.0'
servers:
  - url: https://api.cx.stax.ai
security: []
paths:
  /cp/{client}:
    patch:
      tags:
        - client-portal
      summary: Update client (client portal)
      description: >-
        Update client information from client portal including name, phone,
        business type, EIN, FYE, NAICS code, address, contacts, external
        contacts, and locations. Sends notifications to related users.
      parameters:
        - description: Client ID
          name: client
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
        description: Client update data
        required: true
      responses:
        '200':
          description: Update result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg_routes_cp_client.UpdateClientResponse'
        '400':
          description: Bad request - invalid client ID or request body
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '403':
          description: Forbidden - no access to client or failed to find client
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    pkg_routes_cp_client.UpdateClientResponse:
      type: object
      properties:
        ok:
          type: boolean
        warning:
          description: >-
            Set when the save landed but the removed contacts' access could
            neither be revoked

            nor queued to be (ENG-10006).
          type: string
  securitySchemes:
    ApiKeyAuth:
      description: CX API key. Create one in CX under Settings → Advanced → API Keys.
      in: header
      name: x-api-key
      type: apiKey

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.