PUT api/NotificationInstallations?installationId={installationId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
installationId

string

Required

Body Parameters

NotificationInstallation
NameDescriptionTypeAdditional information
PushChannel

string

Required

Platform

string

Required

InstallationId

string

None.

Templates

Dictionary of string [key] and NotificationTemplate [value]

None.

SecondaryTiles

Dictionary of string [key] and NotificationSecondaryTile [value]

None.

Tags

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "pushChannel": "sample string 1",
  "platform": "sample string 2",
  "installationId": "sample string 3",
  "templates": {
    "sample string 1": {
      "body": "sample string 1",
      "headers": {
        "sample string 1": "sample string 2",
        "sample string 3": "sample string 4"
      },
      "tags": [
        "sample string 1",
        "sample string 2"
      ]
    },
    "sample string 2": {
      "body": "sample string 1",
      "headers": {
        "sample string 1": "sample string 2",
        "sample string 3": "sample string 4"
      },
      "tags": [
        "sample string 1",
        "sample string 2"
      ]
    }
  },
  "secondaryTiles": {
    "sample string 1": {
      "pushChannel": "sample string 1",
      "tags": [
        "sample string 1",
        "sample string 2"
      ],
      "templates": {
        "sample string 1": {
          "body": "sample string 1",
          "headers": {
            "sample string 1": "sample string 2",
            "sample string 3": "sample string 4"
          },
          "tags": [
            "sample string 1",
            "sample string 2"
          ]
        },
        "sample string 2": {
          "body": "sample string 1",
          "headers": {
            "sample string 1": "sample string 2",
            "sample string 3": "sample string 4"
          },
          "tags": [
            "sample string 1",
            "sample string 2"
          ]
        }
      }
    },
    "sample string 2": {
      "pushChannel": "sample string 1",
      "tags": [
        "sample string 1",
        "sample string 2"
      ],
      "templates": {
        "sample string 1": {
          "body": "sample string 1",
          "headers": {
            "sample string 1": "sample string 2",
            "sample string 3": "sample string 4"
          },
          "tags": [
            "sample string 1",
            "sample string 2"
          ]
        },
        "sample string 2": {
          "body": "sample string 1",
          "headers": {
            "sample string 1": "sample string 2",
            "sample string 3": "sample string 4"
          },
          "tags": [
            "sample string 1",
            "sample string 2"
          ]
        }
      }
    }
  },
  "tags": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<NotificationInstallation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Microsoft.Azure.Mobile.Server.Notifications">
  <InstallationId>sample string 3</InstallationId>
  <Platform>sample string 2</Platform>
  <PushChannel>sample string 1</PushChannel>
  <SecondaryTiles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringNotificationSecondaryTileMGAJTaH7>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>
        <PushChannel>sample string 1</PushChannel>
        <Tags>
          <d2p1:string>sample string 1</d2p1:string>
          <d2p1:string>sample string 2</d2p1:string>
        </Tags>
        <Templates>
          <d2p1:KeyValueOfstringNotificationTemplateMGAJTaH7>
            <d2p1:Key>sample string 1</d2p1:Key>
            <d2p1:Value>
              <Body>sample string 1</Body>
              <Headers>
                <d2p1:KeyValueOfstringstring>
                  <d2p1:Key>sample string 1</d2p1:Key>
                  <d2p1:Value>sample string 2</d2p1:Value>
                </d2p1:KeyValueOfstringstring>
                <d2p1:KeyValueOfstringstring>
                  <d2p1:Key>sample string 3</d2p1:Key>
                  <d2p1:Value>sample string 4</d2p1:Value>
                </d2p1:KeyValueOfstringstring>
              </Headers>
              <Tags>
                <d2p1:string>sample string 1</d2p1:string>
                <d2p1:string>sample string 2</d2p1:string>
              </Tags>
            </d2p1:Value>
          </d2p1:KeyValueOfstringNotificationTemplateMGAJTaH7>
          <d2p1:KeyValueOfstringNotificationTemplateMGAJTaH7>
            <d2p1:Key>sample string 2</d2p1:Key>
            <d2p1:Value>
              <Body>sample string 1</Body>
              <Headers>
                <d2p1:KeyValueOfstringstring>
                  <d2p1:Key>sample string 1</d2p1:Key>
                  <d2p1:Value>sample string 2</d2p1:Value>
                </d2p1:KeyValueOfstringstring>
                <d2p1:KeyValueOfstringstring>
                  <d2p1:Key>sample string 3</d2p1:Key>
                  <d2p1:Value>sample string 4</d2p1:Value>
                </d2p1:KeyValueOfstringstring>
              </Headers>
              <Tags>
                <d2p1:string>sample string 1</d2p1:string>
                <d2p1:string>sample string 2</d2p1:string>
              </Tags>
            </d2p1:Value>
          </d2p1:KeyValueOfstringNotificationTemplateMGAJTaH7>
        </Templates>
      </d2p1:Value>
    </d2p1:KeyValueOfstringNotificationSecondaryTileMGAJTaH7>
    <d2p1:KeyValueOfstringNotificationSecondaryTileMGAJTaH7>
      <d2p1:Key>sample string 2</d2p1:Key>
      <d2p1:Value>
        <PushChannel>sample string 1</PushChannel>
        <Tags>
          <d2p1:string>sample string 1</d2p1:string>
          <d2p1:string>sample string 2</d2p1:string>
        </Tags>
        <Templates>
          <d2p1:KeyValueOfstringNotificationTemplateMGAJTaH7>
            <d2p1:Key>sample string 1</d2p1:Key>
            <d2p1:Value>
              <Body>sample string 1</Body>
              <Headers>
                <d2p1:KeyValueOfstringstring>
                  <d2p1:Key>sample string 1</d2p1:Key>
                  <d2p1:Value>sample string 2</d2p1:Value>
                </d2p1:KeyValueOfstringstring>
                <d2p1:KeyValueOfstringstring>
                  <d2p1:Key>sample string 3</d2p1:Key>
                  <d2p1:Value>sample string 4</d2p1:Value>
                </d2p1:KeyValueOfstringstring>
              </Headers>
              <Tags>
                <d2p1:string>sample string 1</d2p1:string>
                <d2p1:string>sample string 2</d2p1:string>
              </Tags>
            </d2p1:Value>
          </d2p1:KeyValueOfstringNotificationTemplateMGAJTaH7>
          <d2p1:KeyValueOfstringNotificationTemplateMGAJTaH7>
            <d2p1:Key>sample string 2</d2p1:Key>
            <d2p1:Value>
              <Body>sample string 1</Body>
              <Headers>
                <d2p1:KeyValueOfstringstring>
                  <d2p1:Key>sample string 1</d2p1:Key>
                  <d2p1:Value>sample string 2</d2p1:Value>
                </d2p1:KeyValueOfstringstring>
                <d2p1:KeyValueOfstringstring>
                  <d2p1:Key>sample string 3</d2p1:Key>
                  <d2p1:Value>sample string 4</d2p1:Value>
                </d2p1:KeyValueOfstringstring>
              </Headers>
              <Tags>
                <d2p1:string>sample string 1</d2p1:string>
                <d2p1:string>sample string 2</d2p1:string>
              </Tags>
            </d2p1:Value>
          </d2p1:KeyValueOfstringNotificationTemplateMGAJTaH7>
        </Templates>
      </d2p1:Value>
    </d2p1:KeyValueOfstringNotificationSecondaryTileMGAJTaH7>
  </SecondaryTiles>
  <Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Tags>
  <Templates xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringNotificationTemplateMGAJTaH7>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>
        <Body>sample string 1</Body>
        <Headers>
          <d2p1:KeyValueOfstringstring>
            <d2p1:Key>sample string 1</d2p1:Key>
            <d2p1:Value>sample string 2</d2p1:Value>
          </d2p1:KeyValueOfstringstring>
          <d2p1:KeyValueOfstringstring>
            <d2p1:Key>sample string 3</d2p1:Key>
            <d2p1:Value>sample string 4</d2p1:Value>
          </d2p1:KeyValueOfstringstring>
        </Headers>
        <Tags>
          <d2p1:string>sample string 1</d2p1:string>
          <d2p1:string>sample string 2</d2p1:string>
        </Tags>
      </d2p1:Value>
    </d2p1:KeyValueOfstringNotificationTemplateMGAJTaH7>
    <d2p1:KeyValueOfstringNotificationTemplateMGAJTaH7>
      <d2p1:Key>sample string 2</d2p1:Key>
      <d2p1:Value>
        <Body>sample string 1</Body>
        <Headers>
          <d2p1:KeyValueOfstringstring>
            <d2p1:Key>sample string 1</d2p1:Key>
            <d2p1:Value>sample string 2</d2p1:Value>
          </d2p1:KeyValueOfstringstring>
          <d2p1:KeyValueOfstringstring>
            <d2p1:Key>sample string 3</d2p1:Key>
            <d2p1:Value>sample string 4</d2p1:Value>
          </d2p1:KeyValueOfstringstring>
        </Headers>
        <Tags>
          <d2p1:string>sample string 1</d2p1:string>
          <d2p1:string>sample string 2</d2p1:string>
        </Tags>
      </d2p1:Value>
    </d2p1:KeyValueOfstringNotificationTemplateMGAJTaH7>
  </Templates>
</NotificationInstallation>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.