Corporate Headquarters (972) 407-0688 1 (877) 492-9484
International Headquarters +44 (0)203 178 3010
List
GET /api/mediagalleries.ashx/mediagallerygroups/
Status: 200 OK <MediaGalleryGroupList> <MediaGalleryGroup> ... </MediaGalleryGroup> ...</MediaGalleryGroupList>
GET /api/mediagalleries.ashx/gallerygroups/{Id}
Status: 200 OK <MediaGalleryGroup> ... </MediaGalleryGroup>
POST /api/mediagalleries.ashx/mediagallerygroups/
<MediaGalleryGroup> ... </MediaGalleryGroup>
Status: 201 CREATED <MediaGalleryGroup> ... </MediaGalleryGroup>
PUT /api/mediagalleries.ashx/mediagallerygroups/{Id}
DELETE /api/mediagalleries.ashx/mediagallerygroups/{Id}
Status: 200 OK
GET /api/mediagalleries.ashx/mediagalleries/
Status: 200 OK <MediaGalleryList PageSize="20" PageIndex="0" TotalCount="1"> <MediaGallery> ... </MediaGallery> ...</MediaGalleryList>
GET /api/mediagalleries.ashx/mediagalleries/{mediagallery query parameters}
Returns a list of MediaGalleries which match the query parameters provided on the querystring.
GET /api/mediagalleries.ashx/mediagalleries/{Id|Key}
Status: 200 OK <MediaGallery> ... </MediaGallery>
POST /api/mediagalleries.ashx/mediagalleries/
<MediaGallery> ... </MediaGallery>
Status: 201 CREATED <MediaGallery> ... </MediaGallery>
PUT /api/mediagalleries.ashx/mediagalleries/{Id|Key}
DELETE /api/mediagalleries.ashx/mediagalleries/{Id}
GET /api/mediagalleries.ashx/mediagalleries/{Id|Key}/posts/
Status: 200 OK <MediaGalleryPostList PageSize="20" PageIndex="0" TotalCount="1"> <MediaGalleryPost> ... </MediaGalleryPost> ...</MediaGalleryPostList>
GET /api/mediagalleries.ashx/posts/{mediagallery post query parameters}
Returns a list of MediaGallery Posts which match the query parameters provided on the querystring.
GET /api/mediagalleries.ashx/posts/{Id}
Status: 200 OK <MediaGalleryPost> ... </MediaGalleryPost>
POST /api/mediagalleries.ashx/posts/
<MediaGalleryPost> ... </MediaGalleryPost>
Status: 201 CREATED <MediaGalleryPost> ... </MediaGalleryPost>
PUT /api/mediagalleries.ashx/posts/{Id}
DELETE /api/mediagalleries.ashx/posts/{Id}
GET /api/mediagalleries.ashx/posts/{PostId}/comments
Lists the Comments relative to the specified MediaGallery Post.
Status: 200 OK <CommentList PageSize="20" PageIndex="0" TotalCount="1"> <Comment> ... </Comment> ...</CommentList>
GET /api/mediagalleries.ashx/posts/{mediagallery comment query parameters}
Returns a list of MediaGallery Comments which match the query parameters provided on the querystring.
GET /api/mediagalleries.ashx/comments/{Id}
Status: 200 OK <Comment> ... </Comment>
POST /api/mediagalleries.ashx/comments/
<Comment> ... </Comment>
Status: 201 CREATED <Comment> ... </Comment>
PUT /api/mediagalleries.ashx/comments/{Id}
DELETE /api/mediagalleries.ashx/comments/{Id}
GET /api/mediagalleries.ashx/posts/{Id}/ratings
Status: 200 OK <RatingList Sum="5" Average="5"> <Rating /> ... </RatingList>
GET /api/mediagalleries.ashx/posts/{PostId}/ratings/{UserId}
Status: 200 OK <Rating />
POST /api/mediagalleries.ashx/posts/{PostId}/ratings/
<int>[value 0-5]</int>
Status: 201 CREATED <Rating />
PUT /api/mediagalleries.ashx/posts/{PostId}/ratings/{UserId}
The members endpoint is used to provide an owner list for a MediaGallery. This is a list of user accounts with administrative access to this media gallery. Only member type "owner" is support by MediaGalleries.
GET /api/mediagalleries.ashx/mediagalleries/{MediaGalleryId}/members
Status: 200 OK <MembershipList> <Member /> ... </MembershipList>
GET /api/mediagalleries.ashx/mediagalleries/{Id}/members/{UserId}
Status: 200 OK <Member />
POST /api/mediagalleries.ashx/mediagalleries/{Id}/members
<Member />
Status: 201 CREATED <Member />
PUT /api/mediagalleries.ashx/mediagalleries/{Id}/members/{UserId}
DELETE /api/mediagalleries.ashx/mediagalleries/{Id}/members/{UserId}
Displays the MediaGallery permissions assigned to each role. Permissions may be overriden within each MediaGallery, and are settable by the MediaGallery Administrator.
GET /api/mediagalleries.ashx/permissions (Application Level)
Status: 200 OK <MediaGalleryPermissionList> <MediaGalleryPermission> ... </MediaGalleryPermission> ... </MediaGalleryPermissionList>
GET /api/mediagalleries.ashx/mediagalleries/{Id}/permissions (MediaGallery Level)
GET /api/mediagalleries.ashx/[mediagalleries/{Id}/]permissions/{permission name}
Status: 200 OK <MediaGalleryPermission> ... </MediaGalleryPermission>
This method is used to explicity define the permissions for a role on a MediaGallery, where the permissions were previously inerhited from the applicaiton default.
POST /api/mediagalleries.ashx/mediagalleries/{Id}/permissions/{permission name}
<MediaGalleryPermission> ... </MediaGalleryPermission>
Status: 201 CREATED <MediaGalleryPermission> ... </MediaGalleryPermission>
Updates the permissions assigned to a particular role. This request can be made either for a specific MediaGallery, or to set the default values for all MediaGalleries. Roles must already exist to have permissions added or changed, see the membership roles section on adding or deleting roles.
PUT /api/mediagalleries.ashx/[mediagalleries/{Id}/]permissions/{permission name}
Removes the specified explicity defined permission (where Implied="false") from the MediaGallery. This will cause the permissions for that role to again be inherited from the applicaiton level.
DELETE /api/mediagalleries.ashx/mediagalleries/{Id}/permissions/{permission name}
Note you can only delete explicity defined permissions (where Implied="false") not default ones which are inherited from the application level.
<MediaGalleryGroup Id="7" Endpoint="http://localhost/cs/api/mediagalleries.ashx/mediagallerygroups/7"> <Name>Media Downloads</Name> <Description /> </GalleryGroup>
<MediaGallery Id="8" Endpoint="http://localhost/cs/api/mediagalleries.ashx/mediagalleries/8"> <MediaGalleryGroupInfo Id="7" Endpoint="http://localhost/cs/api/mediagalleries.ashx/mediagallerygroups/7" /> <Name>My Gallery</Name> <Key>mine</Key> <Url>http://localhost/cs/media/galleries/mine/default.aspx</Url> <DateCreated>2007-12-31T09:26:46.763</DateCreated> <Description /> <Settings> <Enabled>true</Enabled> <IsSearchable xsi:nil="true" /> <EnableRssSyndication>true</EnableRssSyndication> <EnableTagsRss>true</EnableTagsRss> <EnableComments>true</EnableComments> <ModerateComments>false</ModerateComments> <EnableCommentNotification>false</EnableCommentNotification> <EnableMediaGalleryPostNotification>false</EnableMediaGalleryPostNotification> <EnableRatings>true</EnableRatings> <EnableDisclaimer>false</EnableDisclaimer> <RestrictedFileExtensions /> <AllowedFileExtensions /> <EnableExternalLinks>true</EnableExternalLinks> <GalleryFilesQuota>-1</GalleryFilesQuota> <GalleryFilesMaxSize>-1</GalleryFilesMaxSize> </Settings> </MediaGallery>
<MediaGalleryPost Id="5" Endpoint="http://localhost/cs/api/mediagalleries.ashx/mediagalleries/8/posts/5"> <Body> <P mce_keep="true"> </P> </Body> <Url>http://localhost/cs/media/galleries/downloads/post5.aspx</Url> <Title>Theme cool</Title> <Date>2007-12-31T09:35:04.857</Date> <Ratings Endpoint="http://localhost/cs/api/mediagalleries.ashx/mediagalleries/8/posts/5/ratings/" /> <Comments Endpoint="http://localhost/cs/api/mediagalleries.ashx/mediagalleries/8/posts/5/comments/" /> <AttachmentInfo Endpoint="http://localhost/cs/communities/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.00.00.05/CS2007_5F00_Basic_5F00_Theme.zip" /> <MediaGalleryInfo Id="8" Endpoint="http://localhost/cs/api/mediagalleries.ashx/mediagalleries/8" /> <IsPublished>true</IsPublished> <AuthorInfo Id="2100" Endpoint="http://localhost/cs/api/membership.ashx/users/2100" /> </MediaGalleryPost>
<Comment Id="197" Endpoint="http://localhost/cs/api/mediagalleries.ashx/mediagalleries/36/posts/196/comments/197"> <Title>re: My First File</Title> <Body>The sample post comment.</Body> <Date>2008-03-19T13:20:56.073</Date> <IsPublished>true</IsPublished> <MediaGalleryInfo Id="36" Endpoint="http://localhost/cs/api/mediagalleries.ashx/mediagalleries/36" /> <PostInfo Id="196" Endpoint="http://localhost/cs/api/mediagalleries.ashx/mediagalleries/36/posts/196" /> <AuthorInfo Id="2100" IsOwner="false"> <Time>0001-01-01T00:00:00</Time> <HostAddress>000.000.000.000</HostAddress> <Name /> </AuthorInfo></Comment>
<Rating ItemId="2" UserId="2100" UserUrl="http://localhost/cs/api/membership.ashx/users/2100" Value="5" OldValue="0"/>
<Member Id="2100" Endpoint="http://localhost/cs/api/mediagalleries.ashx/mediagalleries/8/members/2100" Type="Owner" DateAdded="2008-01-15T08:14:42.477"/>
<MediaGalleryPermission Id="3108c739-2bf5-4e15-b12a-09dc1a321694" Name="Everyone" Implied="true" Endpoint="http://localhost/cs/api/mediagalleries.ashx/mediagalleries/permissions/everyone"> <Read>false</Read> <Write>false</Write> <Comment>false</Comment> <Video>false</Video> <LocalAttachment>false</LocalAttachment> <RemoteAttachment>false</RemoteAttachment></MediaGalleryPermission>
Query properties are key value pairs separated by a semicolon. Arrays should be formatted as comma separated strings.