> For the complete documentation index, see [llms.txt](https://docs.getpenfold.dev/dev/llms.txt)

# Convert an organisation to multi-employer

> PATCH /organisations/{organisation_id}
> 
> **Partner organisations only.** A Payroll organisation calling this
> endpoint receives `405 Method Not Allowed`.
> 
> Converts a single-employer organisation to multi-employer, so it can hold more
> than one employer. Its admins and its existing employer stay as they are.
> Converting back to single-employer is not supported.



## Servers
- https://payroll-api.getpenfold.dev/v4: https://payroll-api.getpenfold.dev/v4


## Authentication methods
- O auth2 client credentials


## Parameters

### Path parameters

- **organisation_id** (string)
  Penfold organisation id.



### Body: application/json (object)

- **type** (string)
  Only `MultiEmployer` is accepted. Converting to `SingleEmployer` is not
  supported and returns `400`.



## Responses
### 200
Organisation converted

#### Body: application/json (object)
- **id** (string)
  Penfold organisation id. Use it as `organisation_id`.

- **display_name** (string)
  The organisation's name, as shown on the Penfold Workplace Platform.

- **type** (string)
  `SingleEmployer` organisations hold exactly one employer. `MultiEmployer`
  organisations hold several, for example a group of companies.

- **created_at** (string(date-time))
  When the organisation was created (ISO 8601 UTC).


### 400
Request body failed validation, including a request to convert to `SingleEmployer`.

#### Body: application/json (object)
- **error** (string)
  A descriptive error message.

- **validation_errors** (array[object])


### 401
Missing or invalid authentication token

#### Body: application/json (object)
- **error** (string)
  A descriptive error message.


### 404
Organisation not found, or not one you manage.

#### Body: application/json (object)
- **error** (string)
  A descriptive error message.


### 405
Method not allowed. Partner organisations only.

#### Body: application/json (object)
- **error** (string)
  A descriptive error message.


### 409
The organisation is already multi-employer (`OrganisationAlreadyMultiEmployer`). Nothing was changed.

#### Body: application/json (object)
- **code** (string)
  Use this field, rather than `error`, to distinguish between 409 responses.
  `OrganisationAlreadyMultiEmployer`: the organisation is already multi-employer;
  nothing was changed. `OrganisationAlreadyHasEmployer`: the organisation is
  single-employer and already holds an employer; convert it first, then retry.

- **error** (string)


### 500
Internal server error

#### Body: application/json (object)
- **error** (string)
  A descriptive error message.



[Powered by Bump.sh](https://bump.sh)
