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.
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."
}