Update a Contact Method
PUT {{baseUrl}}/api/ContactMethod/:contactMethodId
Similar to other update methods in the API, excluding a property will remove it's value from the object. If you're only updating a single property, the entire model is still required.
Request Body
{"type"=>"<string>", "value"=>"<string>", "isOptedIn"=>"<boolean>", "setAsPrimary"=>"<boolean>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"id":"\u003cinteger\u003e","type":"\u003cstring\u003e","value":"\u003cstring\u003e","isOptedIn":"\u003cboolean\u003e","isPrimary":"\u003cboolean\u003e","canBePrimary":"\u003cboolean\u003e","createDateTimeUtc":"\u003cdateTime\u003e","createdByUser":"\u003cstring\u003e","modifiedDateTimeUtc":"\u003cdateTime\u003e","modifiedByUser":"\u003cstring\u003e"}