Remove a workplace admin

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://docs.getpenfold.dev/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
{
  "Penfold Payroll API v4 MCP server": {
    "url": "https://docs.getpenfold.dev/mcp"
  }
}

Close
DELETE /organisations/{organisation_id}/workplace_admins/{workplace_admin_id}

Partner organisations only. A Payroll organisation calling this endpoint receives 405 Method Not Allowed.

Removes a workplace admin. They can no longer sign in, through you or with a Penfold password. Removing an admin who is already removed changes nothing and returns 200. You can register the same person again later.

Path parameters

  • organisation_id string Required

    Penfold organisation id.

  • workplace_admin_id string Required

    Penfold workplace admin id.

Responses

  • 200

    Workplace admin removed, or already removed. No response body.

  • 401 application/json

    Missing or invalid authentication token

    Hide response attribute Show response attribute object
    • error string

      A descriptive error message.

  • 404 application/json

    Admin was never on this organisation, or organisation not one you manage.

    Hide response attribute Show response attribute object
    • error string

      A descriptive error message.

  • 405 application/json

    Method not allowed. Partner organisations only.

    Hide response attribute Show response attribute object
    • error string

      A descriptive error message.

  • 500 application/json

    Internal server error

    Hide response attribute Show response attribute object
    • error string

      A descriptive error message.

DELETE /organisations/{organisation_id}/workplace_admins/{workplace_admin_id}
curl \
 --request DELETE 'https://payroll-api.getpenfold.dev/v4/organisations/{organisation_id}/workplace_admins/{workplace_admin_id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (401)
{
  "error": "Bad request: invalid data provided."
}
Response examples (404)
{
  "error": "Bad request: invalid data provided."
}
Response examples (405)
{
  "error": "Bad request: invalid data provided."
}
Response examples (500)
{
  "error": "Bad request: invalid data provided."
}