POST api/summerservices/photo/ModifyPhoto2
Request Information
URI Parameters
None.
Body Parameters
PhotoModifyRequest2Name | Description | Type | Additional information |
---|---|---|---|
PhotoID | integer |
None. |
|
Tags | Collection of Tag |
None. |
|
Caption | string |
None. |
|
IsMustSee | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "PhotoID": 1, "Tags": [ { "TagID": 1, "CategoryID": 2 }, { "TagID": 1, "CategoryID": 2 } ], "Caption": "sample string 2", "IsMustSee": true }
application/javascript
Sample:
{"PhotoID":1,"Tags":[{"TagID":1,"CategoryID":2},{"TagID":1,"CategoryID":2}],"Caption":"sample string 2","IsMustSee":true}
application/xml, text/xml
Sample:
<PhotoModifyRequest2 xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <PhotoID>1</PhotoID> <Tags> <Tag> <TagID>1</TagID> <CategoryID>2</CategoryID> </Tag> <Tag> <TagID>1</TagID> <CategoryID>2</CategoryID> </Tag> </Tags> <Caption>sample string 2</Caption> <IsMustSee>true</IsMustSee> </PhotoModifyRequest2>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
WebMethodResultOfPhoto2Name | Description | Type | Additional information |
---|---|---|---|
Result | Photo2 |
None. |
|
Success | boolean |
None. |
|
ErrorText | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Result": { "PhotoID": 1, "AlbumID": 2, "SeasonID": 3, "Caption": "sample string 4", "SortOrder": 5, "HiResUrl": "sample string 6", "HiResSize": "1, 2", "ZoominUrl": "sample string 7", "ZoominSize": "1, 2", "ThumbnailUrl": "sample string 8", "ThumbnailSize": "1, 2", "Tags": [ { "TagID": 1, "CategoryID": 2 }, { "TagID": 1, "CategoryID": 2 } ], "IsMustSee": true }, "Success": true, "ErrorText": "sample string 2" }
application/javascript
Sample:
{"Result":{"PhotoID":1,"AlbumID":2,"SeasonID":3,"Caption":"sample string 4","SortOrder":5,"HiResUrl":"sample string 6","HiResSize":"1, 2","ZoominUrl":"sample string 7","ZoominSize":"1, 2","ThumbnailUrl":"sample string 8","ThumbnailSize":"1, 2","Tags":[{"TagID":1,"CategoryID":2},{"TagID":1,"CategoryID":2}],"IsMustSee":true},"Success":true,"ErrorText":"sample string 2"}
application/xml, text/xml
Sample:
<WebMethodResultOfPhoto2 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> <PhotoID>1</PhotoID> <AlbumID>2</AlbumID> <SeasonID>3</SeasonID> <Caption>sample string 4</Caption> <SortOrder>5</SortOrder> <HiResUrl>sample string 6</HiResUrl> <HiResSize> <Width>1</Width> <Height>2</Height> </HiResSize> <ZoominUrl>sample string 7</ZoominUrl> <ZoominSize> <Width>1</Width> <Height>2</Height> </ZoominSize> <ThumbnailUrl>sample string 8</ThumbnailUrl> <ThumbnailSize> <Width>1</Width> <Height>2</Height> </ThumbnailSize> <Tags> <Tag> <TagID>1</TagID> <CategoryID>2</CategoryID> </Tag> <Tag> <TagID>1</TagID> <CategoryID>2</CategoryID> </Tag> </Tags> <IsMustSee>true</IsMustSee> </Result> </WebMethodResultOfPhoto2>