---
title: "Update Party Request"
url: "https://developer.pexa.co.uk/apis/workspace-v1-v1/versions/f42817f3-815f-4a74-8ba5-2f83efd8ab42/schemas/UpdatePartyRequest"
---

> Full API specification: https://developer.pexa.co.uk/apis/workspace-v1-v1/versions/f42817f3-815f-4a74-8ba5-2f83efd8ab42.md

# Update Party Request

Request to update party

## OpenAPI definition

```yaml
openapi: 3.0.1
info:
  title: Workspace
  version: v1
servers:
  - url: https://api.pexa.co.uk
    description: API Gateway URL
components:
  schemas:
    UpdatePartyRequest:
      type: object
      required:
        - type
      discriminator:
        propertyName: type
        mapping:
          INDIVIDUAL: "#/components/schemas/UpdateIndividualPartyDetails"
          ORGANISATION: "#/components/schemas/UpdateOrganisationPartyDetails"
      properties:
        type:
          type: string
          pattern: ^(INDIVIDUAL|ORGANISATION)$
          example: INDIVIDUAL
          description: |
            Allowed values: [`INDIVIDUAL`, `ORGANISATION`]
        nameChangeOnTitle:
          type: boolean
          description: Flag to indicate whether the user has consented for name change on
            title.
        representationType:
          type: string
          pattern: ^(NO_REPRESENTATION|DUAL_REPRESENTATION|SEPARATE_REPRESENTATION)$
          example: NO_REPRESENTATION
          description: >
            Allowed values: [`NO_REPRESENTATION`, `DUAL_REPRESENTATION`,
            `SEPARATE_REPRESENTATION`]
        representationId:
          type: string
          format: uuid
        partyDetails:
          oneOf:
            - type: object
              properties:
                forenames:
                  maxLength: 90
                  minLength: 1
                  type: string
                  example: James Thomas
                  pattern: ^[A-Za-z][A-Za-z\- ']*$
                surname:
                  maxLength: 50
                  minLength: 1
                  type: string
                  example: Smith
                  pattern: ^[A-Za-z][A-Za-z\- ']*$
              additionalProperties: false
            - type: object
              properties:
                organisationName:
                  maxLength: 160
                  minLength: 1
                  type: string
                  example: My Organisation
                  pattern: ^[a-zA-ZÀ-ÖØ-öø-ſĀ-ıĴ-ľŁ-ŉŊ-ŏŐ-őŒ-žǼǺǾẀẂẄỲǽǻǿẁẃẅỳ\d&@£$€¥#‘’'(){}<>!«»“”"\[\]?*=%+\s.,:\/;\\-]+$
                registrationNumber:
                  type: string
                  minLength: 6
                  maxLength: 8
                  pattern: ^[A-Z0-9]+$
                  example: ABCD1234
                organisationType:
                  maxLength: 200
                  minLength: 1
                  type: string
                  pattern: ^(LIMITED_COMPANY)$
                  example: LIMITED_COMPANY
                  description: |
                    Organisation Type:
                     * `LIMITED_COMPANY`
              additionalProperties: false
        verificationOfIdentity:
          type: string
          pattern: ^(LAW_FIRM_CERTIFIED|IDENTITY_EVIDENCE)$
          example: LAW_FIRM_CERTIFIED
          description: |
            Allowed values: [`LAW_FIRM_CERTIFIED`, `IDENTITY_EVIDENCE`]
      title: Update Party Request
      description: Request to update party
```
