-->

DocuSign account settings : invalid value specifie

2019-09-12 15:33发布

问题:

When we are updating DocuSign account settings using below REST API method its giving below error.

PUT /v2/accounts/{accountId}/settings

Payload {"accountSettings":[{"name":"authenticationCheck","value":"each_access"}]}

Result { "errorCode": "INVALID_REQUEST_PARAMETER", "message": "The request contained at least one invalid parameter. Invalid value specified for parameter: authenticationCheck" }

As per this error "authenticationCheck" is invalid parameter. But it is valid parameter because same parameter we are getting while retrieving of account settings using below REST API method.

GET /v2/accounts/{accountId}/settings

Result {"accountSettings": [{"name": "authenticationCheck","value": "inital_access"}]}

Can anyone help us how can we update this.

回答1:

The PUT is correct, you just need to modify your JSON:

{
  "accountSettings": [
    {
      "name": "authenticationCheck",
      "value": "each_access"
    }
  ]
}

or

{
  "accountSettings": [
    {
      "name": "authenticationCheck",
      "value": "initial_access"
    }
  ]
} 


标签: docusignapi