| Requires any of the roles: | admin, oauthadmin |
| GET | /Ams/{ClientID}/CommunityPhotos/{PhotoId} | Return the data for a photo including comments. | |
|---|---|---|---|
| PUT | /Ams/{ClientID}/CommunityPhotos/{PhotoId} | Update a photo. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PhotoId | path | int | No | |
| Caption | body | string | No | |
| PostedBy | body | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| UsingRedis | form | bool | No | |
| AppInitTime | form | DateTime | No | |
| ServerID | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ClientID | form | int | No | |
| ResponseStatus | form | ResponseStatus | No | |
| BypassCache | form | bool | No | |
| DateCached | form | DateTime | No | |
| Device | form | Device | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PostedUTC | form | DateTime | No | |
| PostedByMugshot | form | string | No | |
| ShareCount | form | int | No | |
| LikeCount | form | int | No | |
| CommentCount | form | int | No | |
| PhotoCommentList | form | List<PhotoComment> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CommentID | form | int | No | |
| CdbID | form | int | No | |
| Posted | form | DateTime | No | |
| PostedUTC | form | DateTime | No | |
| GalleryItemID | form | int | No | |
| SchoolID | form | int | No | |
| Comment | form | string | No | |
| PostedBy | form | string | No | |
| PostedByMugshot | form | string | No | |
| PostedDate | form | string | No | |
| GroupID | form | int | No | |
| IsOwner | form | bool | No | |
| LikeID | form | int | No | |
| LikedComment | form | bool | No | |
| LikeCount | form | int | No | |
| SkipCrossPost | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /Ams/{ClientID}/CommunityPhotos/{PhotoId} HTTP/1.1
Host: ws.yourmembership.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
PhotoId: 0,
Caption: String,
PostedBy: String,
UsingRedis: True,
AppInitTime: 2025-11-16T04:16:52.1920632-05:00,
ServerID: WS-5-47-868,
ClientID: 0,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
BypassCache: False,
DateCached: 2025-11-16T04:42:09.6497836-05:00,
Device: Desktop
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
PostedUTC: 0001-01-01,
PostedByMugshot: String,
ShareCount: 0,
LikeCount: 0,
CommentCount: 0,
PhotoCommentList:
[
{
CommentID: 0,
CdbID: 0,
Posted: 0001-01-01,
PostedUTC: 0001-01-01,
GalleryItemID: 0,
SchoolID: 0,
Comment: String,
PostedBy: String,
PostedByMugshot: String,
PostedDate: String,
GroupID: 0,
IsOwner: False,
LikeID: 0,
LikedComment: False,
LikeCount: 0,
SkipCrossPost: False
}
],
PhotoId: 0,
Caption: String,
PostedBy: String,
UsingRedis: True,
AppInitTime: 2025-11-16T04:16:52.1920632-05:00,
ServerID: WS-5-47-868,
ClientID: 0,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
BypassCache: False,
DateCached: 2025-11-16T04:42:09.6638872-05:00,
Device: Desktop
}