---
title: "Update Party Request"
url: "https://developer.pexa.co.uk/apis/workspace-v1-v1/versions/e785f384-c0a4-4d66-ac02-143cc153d512/schemas/UpdatePartyRequest"
---

> Full API specification: https://developer.pexa.co.uk/apis/workspace-v1-v1/versions/e785f384-c0a4-4d66-ac02-143cc153d512.md

# Update Party Request

Request to update party

## OpenAPI definition

```yaml
openapi: 3.0.1
info:
  title: Workspace
  version: v1.4.1
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\- ']*$
                email:
                  type: string
                  minLength: 1
                  pattern: ^$|(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[A-z0-9](?:[A-z0-9-]*[A-z0-9])?\.)+[A-z0-9](?:[A-z0-9-]*[A-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[A-z0-9-]*[A-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5A\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])
                  example: approver@lawfirm.com
              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`
                officers:
                  type: array
                  description: >
                    Organisation officers (directors/secretary) to capture for
                    QES signing.
                  items:
                    type: object
                    required:
                      - forenames
                      - surname
                      - email
                      - role
                    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\- ']*$
                      email:
                        type: string
                        minLength: 1
                        pattern: ^$|(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[A-z0-9](?:[A-z0-9-]*[A-z0-9])?\.)+[A-z0-9](?:[A-z0-9-]*[A-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[A-z0-9-]*[A-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5A\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])
                        example: approver@lawfirm.com
                      role:
                        type: string
                        pattern: ^(DIRECTOR|SECRETARY)$
                        example: DIRECTOR
                        description: |
                          Allowed values: [`DIRECTOR`, `SECRETARY`]
              additionalProperties: false
        addresses:
          type: array
          description: >
            Address(es) to persist against the party. Provide a
            `CORRESPONDENCE_ADDRESS` when the party type is `INDIVIDUAL` and a
            `REGISTERED_ADDRESS` when the party type is `ORGANISATION`. When not
            provided, the existing address remains unchanged.
          items:
            type: object
            required:
              - type
              - details
            properties:
              type:
                type: string
                pattern: ^(REGISTERED_ADDRESS|CORRESPONDENCE_ADDRESS)$
                description: >
                  Address Type (Update Party API):
                   * `REGISTERED_ADDRESS` - to be used when party type is `ORGANISATION`
                   * `CORRESPONDENCE_ADDRESS` - to be used when party type is `INDIVIDUAL`
              details:
                required:
                  - postcode
                type: object
                properties:
                  name:
                    maxLength: 50
                    minLength: 0
                    type: string
                    example: 1 The House
                  number:
                    maxLength: 4
                    minLength: 0
                    type: string
                    example: 123a
                  flat:
                    maxLength: 30
                    minLength: 0
                    type: string
                    example: Flat 32
                  street:
                    maxLength: 60
                    minLength: 0
                    type: string
                    example: Huddersfield
                  town:
                    maxLength: 30
                    minLength: 0
                    type: string
                    example: West Yorkshire
                  postcode:
                    maxLength: 8
                    minLength: 6
                    type: string
                    example: M16 0RA
                    pattern: ^(([Gg][Ii][Rr]
                      0[Aa]{2})|((([A-Za-z][0-9]{1,2})|(([A-Za-z][A-Ha-hJ-Yj-y][0-9]{1,2})|(([A-Za-z][0-9][A-Za-z])|([A-Za-z][A-Ha-hJ-Yj-y][0-9][A-Za-z]?))))\s[0-9][A-Za-z]{2}))$
        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
```
