POST api/summerservices/photo/AddPhotoTags

Request Information

URI Parameters

None.

Body Parameters

AddTagsRequest
NameDescriptionTypeAdditional information
Tags

Collection of PhotoTag

None.

Request Formats

application/json, text/json

Sample:
{
  "Tags": [
    {
      "PhotoID": 1,
      "TagID": 2,
      "CategoryID": 3
    },
    {
      "PhotoID": 1,
      "TagID": 2,
      "CategoryID": 3
    }
  ]
}

application/javascript

Sample:
{"Tags":[{"PhotoID":1,"TagID":2,"CategoryID":3},{"PhotoID":1,"TagID":2,"CategoryID":3}]}

application/xml, text/xml

Sample:
<AddTagsRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Tags>
    <PhotoTag>
      <TagID>2</TagID>
      <CategoryID>3</CategoryID>
      <PhotoID>1</PhotoID>
    </PhotoTag>
    <PhotoTag>
      <TagID>2</TagID>
      <CategoryID>3</CategoryID>
      <PhotoID>1</PhotoID>
    </PhotoTag>
  </Tags>
</AddTagsRequest>

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 'AddTagsRequest'.

Response Information

Resource Description

WebMethodResultOfListOfPhotoTag
NameDescriptionTypeAdditional information
Result

Collection of PhotoTag

None.

Success

boolean

None.

ErrorText

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": [
    {
      "PhotoID": 1,
      "TagID": 2,
      "CategoryID": 3
    },
    {
      "PhotoID": 1,
      "TagID": 2,
      "CategoryID": 3
    }
  ],
  "Success": true,
  "ErrorText": "sample string 2"
}

application/javascript

Sample:
{"Result":[{"PhotoID":1,"TagID":2,"CategoryID":3},{"PhotoID":1,"TagID":2,"CategoryID":3}],"Success":true,"ErrorText":"sample string 2"}

application/xml, text/xml

Sample:
<WebMethodResultOfListOfPhotoTag xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Success>true</Success>
  <ErrorText>sample string 2</ErrorText>
  <Result>
    <PhotoTag>
      <TagID>2</TagID>
      <CategoryID>3</CategoryID>
      <PhotoID>1</PhotoID>
    </PhotoTag>
    <PhotoTag>
      <TagID>2</TagID>
      <CategoryID>3</CategoryID>
      <PhotoID>1</PhotoID>
    </PhotoTag>
  </Result>
</WebMethodResultOfListOfPhotoTag>