---
updatedAt: 2026-05-11T22:22:56.000Z
agentTools:
  siteIndex: https://developer.paylocity.com/llms.txt
  projectIndex: https://developer.paylocity.com/integrations/llms.txt
---

# Update Business Unit

> 🚧 Partner Restricted
> All background check API endpoints are restricted to background check providers that have signed a Paylocity technology partnership agreement. [Please reach out to our team](https://www.paylocity.com/contact/partner-form/) if you would like to discuss partnership opportunities.

**Summary Description**

This is used to update an already registered  businessUnit's details by companyId and specific businessUnitId for a given client

**Use Cases**

- Partner wants to update the details of a specific businessUnit for a client

# OpenAPI definition

```json
{
  "openapi": "3.0.4",
  "info": {
    "title": "Background Check API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "dc1demogwext.paylocity.com"
    }
  ],
  "paths": {
    "/compliance/v1/companies/{companyId}/businessUnits/{businessUnitId}": {
      "put": {
        "tags": [
          "Business Unit"
        ],
        "summary": "Update Business Unit",
        "description": "> 🚧 Partner Restricted\n> All background check API endpoints are restricted to background check providers that have signed a Paylocity technology partnership agreement. [Please reach out to our team](https://www.paylocity.com/contact/partner-form/) if you would like to discuss partnership opportunities.\n\n**Summary Description**\n\nThis is used to update an already registered  businessUnit's details by companyId and specific businessUnitId for a given client\n\n**Use Cases**\n\n- Partner wants to update the details of a specific businessUnit for a client",
        "x-explorer-enabled": false,
        "operationId": "ComplianceBusinessUnitUpdate",
        "parameters": [
          {
            "name": "companyId",
            "in": "path",
            "description": "The Paylocity Company Identifier. This is the unique value provided by Paylocity to each specific Payroll Entity.\n                **Allowable Values:**\n                9 char max",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "A12345"
          },
          {
            "name": "businessUnitId",
            "in": "path",
            "description": "Business Unit ID associated with the business unit. Required.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "BU-001"
          },
          {
            "name": "testMode",
            "in": "header",
            "description": "If true all responses are mocked and generated randomly.",
            "schema": {
              "type": "boolean"
            },
            "example": false
          },
          {
            "name": "Authorization",
            "in": "header",
            "description": "Authorization token. Ex. Bearer ...",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "Bearer <token>"
          }
        ],
        "requestBody": {
          "description": "Business unit request.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBusinessUnitRequest"
              },
              "examples": {
                "RenameAndActivate": {
                  "summary": "Updates the name and ensures the business unit is active.",
                  "value": {
                    "businessUnitName": "Operations",
                    "isActive": true,
                    "description": "Operations department"
                  }
                },
                "DeactivateWithDescription": {
                  "summary": "Deactivates the business unit with a new description.",
                  "value": {
                    "businessUnitName": "Legacy Finance",
                    "isActive": false,
                    "description": "Deprecated finance unit"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "Returns confirmation that business unit has been updated"
          },
          "400": {
            "description": "Bad Request Error - Returns the details of the error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericErrorResponse"
                },
                "examples": {
                  "MissingRequiredField": {
                    "summary": "A required field is missing in the request payload.",
                    "value": {
                      "correlationId": "bad-request-missing-field-correlation-id",
                      "value": {
                        "code": "INVALID_REQUEST",
                        "message": "The request payload failed validation."
                      },
                      "count": 1,
                      "values": [
                        {
                          "fields": "request.fieldName",
                          "code": "INVALID_REQUEST",
                          "message": "The request payload failed validation."
                        }
                      ]
                    }
                  },
                  "InvalidFieldFormat": {
                    "summary": "A field in the request payload has an invalid format.",
                    "value": {
                      "correlationId": "bad-request-invalid-format-correlation-id",
                      "value": {
                        "code": "INVALID_REQUEST",
                        "message": "The request payload failed validation."
                      },
                      "count": 1,
                      "values": [
                        {
                          "fields": "request.otherField",
                          "code": "INVALID_REQUEST",
                          "message": "The request payload failed validation."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Not Found - Business unit has not been found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericErrorResponse"
                },
                "examples": {
                  "ResourceNotFoundById": {
                    "summary": "The resource with the specified numeric identifier was not found.",
                    "value": {
                      "correlationId": "not-found-by-id-correlation-id",
                      "value": {
                        "code": "RESOURCE_NOT_FOUND",
                        "message": "The requested resource was not found."
                      },
                      "count": 1,
                      "values": [
                        {
                          "fields": "resourceId",
                          "code": "RESOURCE_NOT_FOUND",
                          "message": "The requested resource was not found."
                        }
                      ]
                    }
                  },
                  "ResourceNotFoundByExternalKey": {
                    "summary": "The resource with the specified external key was not found.",
                    "value": {
                      "correlationId": "not-found-by-external-key-correlation-id",
                      "value": {
                        "code": "RESOURCE_NOT_FOUND",
                        "message": "The requested resource was not found."
                      },
                      "count": 1,
                      "values": [
                        {
                          "fields": "externalKey",
                          "code": "RESOURCE_NOT_FOUND",
                          "message": "The requested resource was not found."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type - Returns the details of the error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenericErrorResponse"
                },
                "examples": {
                  "UnsupportedXmlContentType": {
                    "summary": "The API only supports JSON, but XML was provided.",
                    "value": {
                      "correlationId": "unsupported-media-type-xml-correlation-id",
                      "value": {
                        "code": "UNSUPPORTED_MEDIA_TYPE",
                        "message": "The request content type is not supported."
                      },
                      "count": 1,
                      "values": [
                        {
                          "fields": "Content-Type: application/xml",
                          "code": "UNSUPPORTED_MEDIA_TYPE",
                          "message": "The request content type is not supported."
                        }
                      ]
                    }
                  },
                  "MissingContentTypeHeader": {
                    "summary": "The Content-Type header is missing or empty.",
                    "value": {
                      "correlationId": "unsupported-media-type-missing-header-correlation-id",
                      "value": {
                        "code": "UNSUPPORTED_MEDIA_TYPE",
                        "message": "The request content type is not supported."
                      },
                      "count": 1,
                      "values": [
                        {
                          "fields": "Content-Type",
                          "code": "UNSUPPORTED_MEDIA_TYPE",
                          "message": "The request content type is not supported."
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code associated with the error.",
            "nullable": true
          },
          "message": {
            "type": "string",
            "description": "Descriptive message detailing the error.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GenericErrorResponse": {
        "type": "object",
        "properties": {
          "correlationId": {
            "type": "string",
            "description": "A unique identifier used for tracing and correlation purposes.",
            "nullable": true
          },
          "value": {
            "$ref": "#/components/schemas/ErrorDto"
          },
          "count": {
            "type": "integer",
            "description": "Gets the count of items in the Values list.",
            "format": "int32",
            "nullable": true,
            "readOnly": true
          },
          "values": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationErrorDto"
            },
            "description": "A list of items.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateBusinessUnitRequest": {
        "required": [
          "businessUnitName",
          "isActive"
        ],
        "type": "object",
        "properties": {
          "businessUnitName": {
            "minLength": 1,
            "type": "string",
            "description": "Organization name for the package businessUnit.\n    **Allowable Values:**\n    250 char max"
          },
          "isActive": {
            "type": "boolean",
            "description": "A Boolean value indicating if the businessUnit is active.\n    **Allowable Values:**\n    true, false"
          },
          "description": {
            "type": "string",
            "description": "Optional description for the package businessUnit.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Update package businessUnit request payload.\nFor PUT operations, all fields are required to replace the entire entity."
      },
      "ValidationErrorDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Error code associated with the error.",
            "nullable": true
          },
          "message": {
            "type": "string",
            "description": "Descriptive message detailing the error.",
            "nullable": true
          },
          "fields": {
            "type": "string",
            "description": "A string detailing the fields involved in the validation error.",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "CC JWT Authorization header using the bearer scheme",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "Bearer": []
    }
  ]
}
```