POST api/Accounts/AddDestination

Add existing destination to account

Request Information

URI Parameters

None.

Body Parameters

Structure of destination

DestinationOfAccountCreate
NameDescriptionTypeAdditional information
AccountID

Storage account ID

globally unique identifier

Required

Destination

Destination name

string

Required

DestinationDisplayName

Destination name to display

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountID": "34bdbfbb-4dfa-4c1e-88e8-4e8118c80788",
  "Destination": "sample string 2",
  "DestinationDisplayName": "sample string 3"
}

application/xml, text/xml

Sample:
<DestinationOfAccountCreate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MBSAPImvc.Engine.Models">
  <AccountID>34bdbfbb-4dfa-4c1e-88e8-4e8118c80788</AccountID>
  <Destination>sample string 2</Destination>
  <DestinationDisplayName>sample string 3</DestinationDisplayName>
</DestinationOfAccountCreate>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

DestinationOfAccount
NameDescriptionTypeAdditional information
DestinationID

Destination ID

globally unique identifier

Required

AccountID

Storage account ID

globally unique identifier

Required

Destination

Destination name

string

Required

DestinationDisplayName

Destination name to display

string

None.

Response Formats

application/json, text/json

Sample:
{
  "DestinationID": "74796834-682e-4a3c-a230-81bf9979e9a7",
  "AccountID": "c7d44fb0-6e76-49b6-b56d-50b15112aa61",
  "Destination": "sample string 3",
  "DestinationDisplayName": "sample string 4"
}

application/xml, text/xml

Sample:
<DestinationOfAccount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MBSAPImvc.Engine.Models">
  <AccountID>c7d44fb0-6e76-49b6-b56d-50b15112aa61</AccountID>
  <Destination>sample string 3</Destination>
  <DestinationDisplayName>sample string 4</DestinationDisplayName>
  <DestinationID>74796834-682e-4a3c-a230-81bf9979e9a7</DestinationID>
</DestinationOfAccount>