Deletes the specified custom user settings for a single user.

###Deleting Grouped Custom User Settings###

If the custom user settings you want to delete are grouped, you must include the following information in the header, after Content-Type, in the request:

X-DocuSign-User-Settings-Key:group_name

Where the group_name is your designated name for the group of customer user settings.

If the extra header information is not included, only the custom user settings that were added without a group are deleted.

Request

HTTP request

DELETE /v2/accounts/{accountId}/users/{userId}/custom_settings

Parameters

Parameter NameValueDescription
Path Parameters
accountIdstring

The external account number (int) or account ID Guid.

userIdstring

The user ID of the user being accessed. Generally this is the user ID of the authenticated user, but if the authenticated user is an Admin on the account, this may be another user the Admin user is accessing. Note: For GET /v2/accounts/{accountId}/envelopes user_id query parameter is not implemented and should not be used.

Request Body

UserCustomSettings

Responses

CodeDescriptionReference
200

Successful response.

UserCustomSettings
400

Error encountered.

errorDetails

SDK Method

Users::deleteCustomSettings

Definitions

errorDetails

This object describes errors that occur. It is only valid for responses, and ignored in requests.

errorCodestring

An error code associated with the error.

messagestring

A short error message.

nameValue

errorDetailserrorDetails

namestring

The name or key of a name/value pair.

originalValuestring

The initial value of the tab when it was sent to the recipient.

valuestring

The value field of a name/value pair.

UserCustomSettings

Users' custom settings

customSettings[nameValue]

The name/value pair information for the user custom setting.

Examples

Generic JSON Request/Response

Request
{
  "customSettings": [
    {}
  ]
}
Response
{
  "customSettings": [
    {}
  ]
}
Generic XML Request/Response

Request
<customSettingsInformation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.docusign.com/restapi">
  <customSettings>
    <nameValue />
  </customSettings>
</customSettingsInformation> 
Response
<customSettingsInformation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.docusign.com/restapi">
  <customSettings>
    <nameValue />
  </customSettings>
</customSettingsInformation> 
}} />