Update Association
PUT/client/users/:correlation_id/associations/types/:associationType/values/:associationValue
This request is used to update account association.
newValue is mandatory parameter.
New Association Value can be 3-128 alphanumeric characters with space, hyphen and underscore.
Request Body
| Attribute | Definition | Format | Notes |
|---|---|---|---|
| newValue | Provides new value for association | String | Mandatory attribute. |
Response
| Attribute | Definition | Format | Notes |
|---|---|---|---|
| accountID | The accountId for which association was updated for. | String | |
| associationType | Type of the association | String | |
| associationValue | Value of the association | String |
Error Responses
| statusCode | errorMessage | errorCode | Definition |
|---|---|---|---|
| 400 Bad Request | Account Association feature is not supported. | INVALID_REQUEST | A valid request to update association but the feature is disabled. |
| 400 Bad Request | SHIP_TO association type is not valid. | INVALID_REQUEST | A request with associationType that is not configured in system. |
| 400 Bad Request | Association already exists. | INVALID_REQUEST | A valid request to add more than one association which is invalid. |
| 400 Bad Request | The associationValue should be 3-128 characters. Possible characters: a-z, A-Z, space, underscore, hyphen. | INVALID_REQUEST | The associationValue is not valid. Comply with format requirements. |
Request
Responses
- 200
- 400
200 - Update Account Association
400 - Account Association Not Enabled