Update Custom Parameter

Definition

https://sandbox.bluesnap.com/services/2/catalog/custom-parameters/:custom-parameter-id


The Update Custom Parameter enables you to modify existing custom parameters in your BlueSnap account.


Request Content

custom-parameter    required, contains the following properties (see custom-parameter):

PropertyTypeRequired
custom-param-titlestringrequired
activebooleanoptional
mandatorybooleanoptional

container    required, contains the following properties (see custom-param-settings):

PropertyTypeRequired
custom-param-typestringrequired
short-text-typecontaineroptional (see short-text-type)
visual-settingscontaineroptional (see visual-settings)
fixed-selection-typecontaineroptional (see fixed-selection-type)
merchant-value-typecontaineroptional (see merchant-value-type)

Response Details

If successful, the response HTTP status code is 204 No Content.
There is no content in the response body.
For details about possible errors, see: General Errors and Catalog Errors.


Examples

Request Example

curl -v -X PUT https://sandbox.bluesnap.com/services/2/catalog/custom-parameters/16561 \
-H 'Content-Type: application/xml' \
-H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-d '
<custom-parameter xmlns="http://ws.plimus.com">
  <custom-param-title>Where did you hear about us?</custom-param-title>
  <active>true</active>
  <mandatory>true</mandatory>
  <custom-param-settings>
    <custom-param-type>SHORT-TEXT</custom-param-type>
    <short-text-type>
      <maximum-length>2000</maximum-length>
      <minimum-length>7</minimum-length>
      <regex-validation>[a-zA-Z]</regex-validation>
    </short-text-type>
    <visual-settings>
      <title-alignment>LEFT</title-alignment>
    </visual-settings>
  </custom-param-settings>
</custom-parameter>'

Response Example

HTTP/ 1.1 204 No Content

Back to Top