PUT associations({associationId})/Advertisements({itemId})

This method updates an advertisement

Request Information

Parameters

NameDescriptionAdditional information
associationId
association identifier

Define this parameter in the request URI.

itemId
advertisement identifier

Define this parameter in the request URI.

advertisementData
advertisement data

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ImageSource": "sample string 2",
  "Width": 1,
  "Height": 1,
  "ByteSize": 1,
  "URL": "sample string 3",
  "AltText": "sample string 4",
  "Comments": "sample string 5",
  "MemberId": 1,
  "Disabled": true,
  "EndDate": "2024-04-20T00:06:47.5998605-05:00",
  "StartDate": "2024-04-20T00:06:47.5998605-05:00",
  "Priority": 1,
  "Context": [
    {
      "Context": 1,
      "ContextName": null,
      "CategoryId": 1,
      "ContextDescription": "sample string 2"
    },
    {
      "Context": 1,
      "ContextName": null,
      "CategoryId": 1,
      "ContextDescription": "sample string 2"
    },
    {
      "Context": 1,
      "ContextName": null,
      "CategoryId": 1,
      "ContextDescription": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<AdvertismentResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MicroNet_Web_API.Classes.Resources">
  <AltText>sample string 4</AltText>
  <ByteSize>1</ByteSize>
  <Comments>sample string 5</Comments>
  <Context>
    <AdvertisementContextResource>
      <CategoryId>1</CategoryId>
      <Context>1</Context>
      <ContextDescription>sample string 2</ContextDescription>
    </AdvertisementContextResource>
    <AdvertisementContextResource>
      <CategoryId>1</CategoryId>
      <Context>1</Context>
      <ContextDescription>sample string 2</ContextDescription>
    </AdvertisementContextResource>
    <AdvertisementContextResource>
      <CategoryId>1</CategoryId>
      <Context>1</Context>
      <ContextDescription>sample string 2</ContextDescription>
    </AdvertisementContextResource>
  </Context>
  <Disabled>true</Disabled>
  <EndDate>2024-04-20T00:06:47.5998605-05:00</EndDate>
  <Height>1</Height>
  <Id>1</Id>
  <ImageSource>sample string 2</ImageSource>
  <MemberId>1</MemberId>
  <Priority>1</Priority>
  <StartDate>2024-04-20T00:06:47.5998605-05:00</StartDate>
  <URL>sample string 3</URL>
  <Width>1</Width>
</AdvertismentResource>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

An advertisement

Response body formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ImageSource": "sample string 2",
  "Width": 1,
  "Height": 1,
  "ByteSize": 1,
  "URL": "sample string 3",
  "AltText": "sample string 4",
  "Comments": "sample string 5",
  "MemberId": 1,
  "Disabled": true,
  "EndDate": "2024-04-20T00:06:47.6098753-05:00",
  "StartDate": "2024-04-20T00:06:47.6098753-05:00",
  "Priority": 1,
  "Context": [
    {
      "Context": 1,
      "ContextName": null,
      "CategoryId": 1,
      "ContextDescription": "sample string 2"
    },
    {
      "Context": 1,
      "ContextName": null,
      "CategoryId": 1,
      "ContextDescription": "sample string 2"
    },
    {
      "Context": 1,
      "ContextName": null,
      "CategoryId": 1,
      "ContextDescription": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<AdvertismentResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MicroNet_Web_API.Classes.Resources">
  <AltText>sample string 4</AltText>
  <ByteSize>1</ByteSize>
  <Comments>sample string 5</Comments>
  <Context>
    <AdvertisementContextResource>
      <CategoryId>1</CategoryId>
      <Context>1</Context>
      <ContextDescription>sample string 2</ContextDescription>
    </AdvertisementContextResource>
    <AdvertisementContextResource>
      <CategoryId>1</CategoryId>
      <Context>1</Context>
      <ContextDescription>sample string 2</ContextDescription>
    </AdvertisementContextResource>
    <AdvertisementContextResource>
      <CategoryId>1</CategoryId>
      <Context>1</Context>
      <ContextDescription>sample string 2</ContextDescription>
    </AdvertisementContextResource>
  </Context>
  <Disabled>true</Disabled>
  <EndDate>2024-04-20T00:06:47.6098753-05:00</EndDate>
  <Height>1</Height>
  <Id>1</Id>
  <ImageSource>sample string 2</ImageSource>
  <MemberId>1</MemberId>
  <Priority>1</Priority>
  <StartDate>2024-04-20T00:06:47.6098753-05:00</StartDate>
  <URL>sample string 3</URL>
  <Width>1</Width>
</AdvertismentResource>