POST Account/AddAccountContactMethod

Add an email address or SMS text address to an account. SMS number should be formatted in +countrycode-AreaCode-Phone (+1949-455-3234).

Request Information

URI Parameters

None.

Body Parameters

A JSON Request containing contact information

UserContactMethodParam
NameDescriptionTypeAdditional information
ContactAddress

User Contact information

string

None.

NotificationMethodID

Type of contact. 1 = Email, 2 = SMS

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ContactAddress": "sample string 1",
  "NotificationMethodID": 2
}

application/xml, text/xml

Sample:
<UserContactMethodParam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CreatorsAPI.Models">
  <ContactAddress>sample string 1</ContactAddress>
  <NotificationMethodID>2</NotificationMethodID>
</UserContactMethodParam>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UserContactMethodParam'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.