> For the complete documentation index, see [llms.txt](https://docs.getpenfold.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`. An employer-scoped access
> token receives `403 Forbidden`.
> 
> Converts a `single_employer` managed organisation into a
> `multi_employer` one, so it can hold more than one employer. The
> organisation’s users and its existing employer are unchanged. Only
> `type: multi_employer` is accepted; converting back to `single_employer`
> is not supported.
> 
> Returns `404 Not Found` when the organisation does not exist or is not
> managed by your Partner organisation, and `409 Conflict` when it is
> already `multi_employer`.



## 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)
  Unique identifier for the managed organisation.



### Body: application/json (object)

- **type** (string)
  The organisation type to convert to. Only `multi_employer` is accepted:
  a `single_employer` organisation becomes `multi_employer`. Converting
  back to `single_employer` is not supported, so sending it returns `400`.



## Responses
### 200
Organisation converted to multi-employer.

#### Body: application/json (object)
- **id** (string)
  The unique identifier for the managed organisation. Store this; it is the key for every other organisation endpoint.

- **display_name** (string)
  The name of the managed organisation.

- **type** (string)
  The shape of a managed organisation.

  - `single_employer`: the organisation is one employer.
  - `multi_employer`: the organisation runs payroll for several employers,
    for example a payroll bureau.

- **created_at** (string(date-time))
  The date and time the managed organisation was created, in ISO 8601 format.


### 400
Bad request, the request is malformed or `type` is not `multi_employer`.

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

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


### 401
Unauthorized

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


### 403
Forbidden, the access token is scoped to an employer.

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


### 404
Organisation not found, or not managed by your Partner organisation.

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


### 405
Method not allowed

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


### 409
The organisation is already `multi_employer`. Nothing was changed. Use `code`, not `error`, to detect this case; `error` is a human-readable message and its wording may change.

#### Body: application/json (object)
- **code** (string)
  The organisation is already `multi_employer`. Nothing was changed.

- **error** (string)


### 500
Internal server error. Nothing was changed, so you can retry.

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



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