You can update existing multiple contents in a single request. For example, set the expiration dates of multiple articles at once.
List of supported entities: Articles, Blogs, CMS Pages, Albums, Wikis, Ideas, Forums, Forum Groups, Forum Topics, Forum Posts. Valid for Communifire version 8.0 and above.
Enter number for corresponding status:
1 - Published
2 - Draft
5 - Expired
PUT https://myintranet.communifire.com/api/content/multiple
Body:
"[ { \"ContentID\":9740, \"ContentTitle\":\"Jupiter is the fifth planet from the Sun\", \"ContentBody\":\"Jupiter is primarily composed of hydrogen with a quarter of its mass being helium, although helium only comprises about a tenth of the number of molecules. It may also have a rocky core of heavier elements, but like the other giant planets, Jupiter lacks a well-defined solid surface. \" }, { \"ContentID\":9739, \"ContentTitle\":\"Lorem ipsum dolor sit amet\", \"ContentBody\":\"Enim praesent elementum facilisis leo vel. Lorem mollis aliquam ut porttitor leo a diam sollicitudin tempor. Lobortis scelerisque fermentum dui faucibus in. In hac habitasse platea dictumst vestibulum rhoncus. Adipiscing vitae proin sagittis nisl rhoncus mattis rhoncus. Eget gravida cum sociis natoque penatibus et magnis. Scelerisque viverra mauris in aliquam sem. Urna cursus eget nunc scelerisque viverra mauris \" }, { \"ContentID\":8763, \"ContentTitle\":\"Mauris in aliquam sem fringilla ut morbi\", \"ContentBody\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. At in tellus integer feugiat. Volutpat est velit egestas dui id. Ut etiam sit amet nisl purus in mollis nunc. Massa sed elementum tempus egestas sed\" }, { \"ContentID\":9741, \"ContentTitle\":\"Adipiscing commodo elit at imperdiet dui accumsan sit amet nulla\", \"ContentBody\":\"Sed arcu non odio euismod. Dolor sed viverra ipsum nunc aliquet bibendum enim facilisis gravida. Vulputate eu scelerisque felis imperdiet proin fermentum. Commodo odio aenean sed adipiscing diam. Ipsum a arcu cursus vitae. Porttitor rhoncus dolor purus non enim. Malesuada pellentesque elit eget gravida\" }, ]"
Note: JSON data above is stringified.
The response will contain the status for each content that was requested in the Update request:
[ { "IsError": false, "ResponseMessage": "The content is published.", "ResponseData": 9740 }, { "IsError": false, "ResponseMessage": "The content is published.", "ResponseData": 9739 }, { "IsError": false, "ResponseMessage": "The content is published.", "ResponseData": 8763 }, { "IsError": false, "ResponseMessage": "The content is published.", "ResponseData": 9741 } ]
"[ { \"ContentID\":7999, \"StatusID\": 5, \"IsContentAvailablePostExpiry\":true, \"DateExpired\":\"2021-12-21T06:30:00Z\" }, { \"ContentID\":7998, \"StatusID\": 5, \"IsContentAvailablePostExpiry\":true, \"DateExpired\":\"2021-12-21T06:30:00Z\" }, { \"ContentID\":7995, \"StatusID\": 5, \"IsContentAvailablePostExpiry\":true, \"DateExpired\":\"2021-12-21T06:30:00Z\" }, { \"ContentID\":9741, \"StatusID\": 5, \"IsContentAvailablePostExpiry\":false, \"DateExpired\":\"2021-12-21T06:30:00Z\" }, ]"
[ { "IsError": false, "ResponseMessage": "Expired. Source Object: {\r\n \"ContentID\": 7999, \r \n \"StatusID\": 5, \r\n \"IsContentAvailblePostExpiry\": true, \r\n \"DateExpired\": \"2021-12-21T06:30:00Z\" \r\n}","ResponseData": 7999 }, { "IsError": false, "ResponseMessage": "Expired. Source Object: {\r\n \"ContentID\": 7998, \r\n \"StatusID\": 5, \r\n \"IsContentAvailablePostExpiry\": true, \r\n \"DateExpired\": \"2021-12-21T06:30:00Z\" \r\n}","ResponseData": 7998 }, { "IsError": false, "ResponseMessage": "Expired. Source Object: {\r\n \"ContentID\": 7995, \r\n \"StatusID\": 5, \r\n \"IsContentAvailablePostExpiry\": true, \r\n \"DateExpired\": \"2021-12-21T06:30:00Z\" \r\n}","ResponseData": 7995 }, { "IsError": false, "ResponseMessage": "Expired. Source Object: {\r\n \"ContentID\": 9741, \r\n \"StatusID\": 5, \r\n \"IsContentAvailablePostExpiry\": false, \r\n \"DateExpired\": \"2021-12-21T06:30:00Z\" \r\n}","ResponseData": 9741 } ]
Please Note The content type that you pass in the header of your request should be application/json.
is requesting access to a wiki that you have locked: https://my.axerosolutions.com/spaces/5/communifire-documentation/wiki/view/88150/rest-api-update-content-multiple?locale=en-US%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252f1%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252f1%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252f1%25252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252f1
Your session has expired. You are being logged out.