# Unregister service account from Subaccount

This function unlinks a service account from a subaccount.

Endpoint: GET /UserManager/unlink_service_account
Version: 11.136.0.13
Security: BasicAuth

## Query parameters:

  - `domain` (string, required)
    The subaccount's associated domain.
    Example: "example.com"

  - `service` (string, required)
    The service to unlink.

* email
* ftp
* webdisk
    Enum: "email", "ftp", "webdisk"

  - `username` (string, required)
    The subaccount's username.

Note:

This value does not include the domain name.
    Example: "example"

  - `dismiss` (integer)
    Whether to dismiss the service account as a merge candidate.
* 1 - Dismiss as merge candidate.
* 0 - Display as merge candidate.

Note:

 If any email, FTP, or Web Disk accounts use the same username, cPanel's User Manager interface (cPanel >> Home >> Preferences >> User Manager) allows you to merge those accounts into a subaccount.
    Enum: 0, 1

## Response 200 fields (application/json):

  - `apiversion` (integer)
    The version of the API.
    Example: 3

  - `func` (string)
    The name of the method called.
    Example: "unlink_service_account"

  - `module` (string)
    The name of the module called.
    Example: "UserManager"

  - `result` (object)

  - `result.data` (object,null)

  - `result.errors` (array,null)
    List of errors if the API failed.

  - `result.messages` (array,null)
    List of messages generated by the API.

  - `result.metadata` (object)

  - `result.status` (integer)
    * 1 - Success
* 0 - Failed: Check the errors field for more details.
    Enum: 0, 1

  - `result.warnings` (array,null)
    List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.


