POST api/Forms/LinkFormResultsWithMedia?formResultsID={formResultsID}
Links FormResults with Media. Skips Media that did not exist.
Request Information
Parameters
Name | Description | Additional information |
---|---|---|
formResultsID | Unique ID of the FormResults into which to link Media objects. Required. |
Define this parameter in the request URI. |
mediaIDList | List of unique IDs of Media linked to FormResults. |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
[ "83c6e2a7-7bc5-4e8d-9ad2-da44cf19c073", "8219bc6c-5c6a-45bb-a7e5-e80a5c1764c8", "aa947480-628d-4cf1-a156-41c0b7ed3291" ]
application/xml, text/xml
Sample:
<ArrayOfguid xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <guid>83c6e2a7-7bc5-4e8d-9ad2-da44cf19c073</guid> <guid>8219bc6c-5c6a-45bb-a7e5-e80a5c1764c8</guid> <guid>aa947480-628d-4cf1-a156-41c0b7ed3291</guid> </ArrayOfguid>
Response Information
Response body formats
application/json, text/json
Sample:
[ null, { "MediaID": "6848eff9-6a82-420f-a3e9-3a9e0b5e17c8", "FilePath": "sample string 2", "ThumbnailFilePath": "sample string 3", "FileType": "sample string 4", "Type": "Other", "Title": "sample string 5", "Description": "sample string 6", "NavigateUrl": "sample string 7", "CreatedTime": "2024-11-21T08:08:25.3404699-08:00", "UpdatedTime": "2024-11-21T08:08:25.3404699-08:00", "MediaCategoryID": "29b3324b-1966-47b4-a1f7-5f5ba3b1078e", "IsPublic": true, "IsHidden": true, "IsFileLocked": true, "Views": 1, "Width": 1, "Height": 1, "SiteName": "sample string 10", "Duration": 1, "Order": 1 }, { "MediaID": "6848eff9-6a82-420f-a3e9-3a9e0b5e17c8", "FilePath": "sample string 2", "ThumbnailFilePath": "sample string 3", "FileType": "sample string 4", "Type": "Other", "Title": "sample string 5", "Description": "sample string 6", "NavigateUrl": "sample string 7", "CreatedTime": "2024-11-21T08:08:25.3404699-08:00", "UpdatedTime": "2024-11-21T08:08:25.3404699-08:00", "MediaCategoryID": "29b3324b-1966-47b4-a1f7-5f5ba3b1078e", "IsPublic": true, "IsHidden": true, "IsFileLocked": true, "Views": 1, "Width": 1, "Height": 1, "SiteName": "sample string 10", "Duration": 1, "Order": 1 } ]
application/xml, text/xml
Sample:
<ArrayOfMedia xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MediaLibrarianCore"> <Media i:nil="true" /> <Media> <CreatedTime>2024-11-21T08:08:25.3404699-08:00</CreatedTime> <Description>sample string 6</Description> <Duration>1</Duration> <FilePath>sample string 2</FilePath> <FileType>sample string 4</FileType> <Height>1</Height> <IsFileLocked>true</IsFileLocked> <IsHidden>true</IsHidden> <IsPublic>true</IsPublic> <MediaCategoryID>29b3324b-1966-47b4-a1f7-5f5ba3b1078e</MediaCategoryID> <MediaID>6848eff9-6a82-420f-a3e9-3a9e0b5e17c8</MediaID> <NavigateUrl>sample string 7</NavigateUrl> <Order>1</Order> <SiteName>sample string 10</SiteName> <ThumbnailFilePath>sample string 3</ThumbnailFilePath> <Title>sample string 5</Title> <Type>Other</Type> <UpdatedTime>2024-11-21T08:08:25.3404699-08:00</UpdatedTime> <Views>1</Views> <Width>1</Width> </Media> <Media> <CreatedTime>2024-11-21T08:08:25.3404699-08:00</CreatedTime> <Description>sample string 6</Description> <Duration>1</Duration> <FilePath>sample string 2</FilePath> <FileType>sample string 4</FileType> <Height>1</Height> <IsFileLocked>true</IsFileLocked> <IsHidden>true</IsHidden> <IsPublic>true</IsPublic> <MediaCategoryID>29b3324b-1966-47b4-a1f7-5f5ba3b1078e</MediaCategoryID> <MediaID>6848eff9-6a82-420f-a3e9-3a9e0b5e17c8</MediaID> <NavigateUrl>sample string 7</NavigateUrl> <Order>1</Order> <SiteName>sample string 10</SiteName> <ThumbnailFilePath>sample string 3</ThumbnailFilePath> <Title>sample string 5</Title> <Type>Other</Type> <UpdatedTime>2024-11-21T08:08:25.3404699-08:00</UpdatedTime> <Views>1</Views> <Width>1</Width> </Media> </ArrayOfMedia>