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:
[ "a3d2961f-c8fd-4373-9829-1f9b29124cba", "61da24e4-8b3e-4e4d-81e5-3187f6cb8e46", "adc164fa-3e75-4c36-b9fc-f604fc075304" ]
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>a3d2961f-c8fd-4373-9829-1f9b29124cba</guid> <guid>61da24e4-8b3e-4e4d-81e5-3187f6cb8e46</guid> <guid>adc164fa-3e75-4c36-b9fc-f604fc075304</guid> </ArrayOfguid>
Response Information
Response body formats
application/json, text/json
Sample:
[ null, { "MediaID": "6f7d1b65-0e9c-40dd-b805-a3c0031d6b49", "FilePath": "sample string 2", "ThumbnailFilePath": "sample string 3", "FileType": "sample string 4", "Type": "Other", "Title": "sample string 5", "Description": "sample string 6", "CreatedTime": "2024-05-17T13:10:52.335347-07:00", "UpdatedTime": "2024-05-17T13:10:52.335347-07:00", "MediaCategoryID": "4a7fd06c-5c00-4f10-b653-1789e9e052b3", "IsPublic": true, "IsHidden": true, "IsFileLocked": true, "Views": 1, "Width": 1, "Height": 1, "SiteName": "sample string 9", "Duration": 1, "Order": 1 }, { "MediaID": "6f7d1b65-0e9c-40dd-b805-a3c0031d6b49", "FilePath": "sample string 2", "ThumbnailFilePath": "sample string 3", "FileType": "sample string 4", "Type": "Other", "Title": "sample string 5", "Description": "sample string 6", "CreatedTime": "2024-05-17T13:10:52.335347-07:00", "UpdatedTime": "2024-05-17T13:10:52.335347-07:00", "MediaCategoryID": "4a7fd06c-5c00-4f10-b653-1789e9e052b3", "IsPublic": true, "IsHidden": true, "IsFileLocked": true, "Views": 1, "Width": 1, "Height": 1, "SiteName": "sample string 9", "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-05-17T13:10:52.335347-07: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>4a7fd06c-5c00-4f10-b653-1789e9e052b3</MediaCategoryID> <MediaID>6f7d1b65-0e9c-40dd-b805-a3c0031d6b49</MediaID> <Order>1</Order> <SiteName>sample string 9</SiteName> <ThumbnailFilePath>sample string 3</ThumbnailFilePath> <Title>sample string 5</Title> <Type>Other</Type> <UpdatedTime>2024-05-17T13:10:52.335347-07:00</UpdatedTime> <Views>1</Views> <Width>1</Width> </Media> <Media> <CreatedTime>2024-05-17T13:10:52.335347-07: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>4a7fd06c-5c00-4f10-b653-1789e9e052b3</MediaCategoryID> <MediaID>6f7d1b65-0e9c-40dd-b805-a3c0031d6b49</MediaID> <Order>1</Order> <SiteName>sample string 9</SiteName> <ThumbnailFilePath>sample string 3</ThumbnailFilePath> <Title>sample string 5</Title> <Type>Other</Type> <UpdatedTime>2024-05-17T13:10:52.335347-07:00</UpdatedTime> <Views>1</Views> <Width>1</Width> </Media> </ArrayOfMedia>