Skip to main content

Delete a user

POST 

/v1/businesses/{businessId}/users/delete

Permanently deletes the user from Hiya, so they can no longer sign in. This can't be undone. It doesn't change the business's contact, which is separate from its users.

The user is identified by the email in the body. This is a POST action rather than a DELETE, because request bodies on DELETE are unreliable across clients and proxies.

The business must have completed verification (ACTIVE or INACTIVE); one still UNDER_REVIEW or in NEEDS_ATTENTION, or one being shut down, returns 409.

Path Parameters​


    businessId string<uuid>required

    The ID of the business, assigned by Hiya.

    Example: 9b8a1c4e-2c0f-4f3d-9a1e-7b3a2b4c6d8f

Header Parameters​


    X-Hiya-Request-Id string

    Your own correlation ID for this call, returned as

    requestId
    in the response body. Hiya generates one if omitted. A value that doesn't match the pattern is rejected with
    400
    INVALID_HEADER
    .

    Possible values: <= 200 characters, Value must match regular expression ^[A-Za-z0-9._:/+=@-]+$

    Example: job-2f9c1a7e-0042

Body

required

application/json

Responses​

The user was deleted.

Response Body

application/json