POST PhoneNumbers/Upsert?Userkey={Userkey}&Password={Password}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Userkey

string

Required

Password

string

Required

Body Parameters

Collection of PhoneNumbersWithGroupIDs
NameDescriptionTypeAdditional information
GroupIDs

Collection of integer

None.

PhoneNumber

PhoneNumbers

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "PhoneNumber": {
      "ID": 1,
      "UserID": 1,
      "LastName": "sample string 2",
      "FirstName": "sample string 3",
      "VariableData01": "sample string 4",
      "VariableData02": "sample string 5",
      "VariableData03": "sample string 6",
      "VariableData04": "sample string 7",
      "VariableData05": "sample string 8",
      "MSISDN": "sample string 9",
      "DateUpdated": "2019-10-14T04:42:07.007542+02:00"
    },
    "GroupIDs": [
      1,
      2
    ]
  },
  {
    "PhoneNumber": {
      "ID": 1,
      "UserID": 1,
      "LastName": "sample string 2",
      "FirstName": "sample string 3",
      "VariableData01": "sample string 4",
      "VariableData02": "sample string 5",
      "VariableData03": "sample string 6",
      "VariableData04": "sample string 7",
      "VariableData05": "sample string 8",
      "MSISDN": "sample string 9",
      "DateUpdated": "2019-10-14T04:42:07.007542+02:00"
    },
    "GroupIDs": [
      1,
      2
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfPhoneNumbersWithGroupIDs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ASPSMSWebAPI.Models">
  <PhoneNumbersWithGroupIDs>
    <GroupIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </GroupIDs>
    <PhoneNumber>
      <DateUpdated>2019-10-14T04:42:07.007542+02:00</DateUpdated>
      <FirstName>sample string 3</FirstName>
      <ID>1</ID>
      <LastName>sample string 2</LastName>
      <MSISDN>sample string 9</MSISDN>
      <UserID>1</UserID>
      <VariableData01>sample string 4</VariableData01>
      <VariableData02>sample string 5</VariableData02>
      <VariableData03>sample string 6</VariableData03>
      <VariableData04>sample string 7</VariableData04>
      <VariableData05>sample string 8</VariableData05>
    </PhoneNumber>
  </PhoneNumbersWithGroupIDs>
  <PhoneNumbersWithGroupIDs>
    <GroupIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>1</d3p1:int>
      <d3p1:int>2</d3p1:int>
    </GroupIDs>
    <PhoneNumber>
      <DateUpdated>2019-10-14T04:42:07.007542+02:00</DateUpdated>
      <FirstName>sample string 3</FirstName>
      <ID>1</ID>
      <LastName>sample string 2</LastName>
      <MSISDN>sample string 9</MSISDN>
      <UserID>1</UserID>
      <VariableData01>sample string 4</VariableData01>
      <VariableData02>sample string 5</VariableData02>
      <VariableData03>sample string 6</VariableData03>
      <VariableData04>sample string 7</VariableData04>
      <VariableData05>sample string 8</VariableData05>
    </PhoneNumber>
  </PhoneNumbersWithGroupIDs>
</ArrayOfPhoneNumbersWithGroupIDs>

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 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.