...
https://<instance_name>.fuseuniversal.com/api/v4.4/contents/article
Request
Request Header Parameters
Authorisation is required.
Request Parameters
The following parameters are mandatory when posting an article Fuse:
...
Info |
---|
Please use the request examples as reference. |
Response
The response for this API endpoint contains the new content ID that was created. Security sensitive fields may not be returned in the response.
...
Info |
---|
Please refer to the Response Codes page for more information. |
Example requests
Request URL example:
Code Block |
---|
https://<instance_name>.fuseuniversal.com/api/v4.4/contents/article?auth_token=<valid_auth_token> |
Request body example (basic article body):
Code Block | ||
---|---|---|
| ||
{ "name": "API content", "description": "Created With API", "composite_attributes": { "body": "This is a body of an article posted with the API" }, "community_ids": [<valid_community_id>] } |
...
Request body example (embed video in article body):
Code Block | ||
---|---|---|
| ||
{ "name": "Embed Video Via API", "description": "Added via api", "composite_attributes": { "body": "<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/AWvdpouEl0w\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>" }, "community_ids": [<valid_community_id>] } |
...
Request body example (Embed multiple videos in article body):
Code Block | ||
---|---|---|
| ||
{ "name": "Embed Video Via API", "description": "Added via api", "composite_attributes": { "body": "<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/AWvdpouEl0w\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe><iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/vJmQUy6lV2c\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe><iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/_NYgl-qzYPI\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>" }, "community_ids": [ <valid_community_id> ] } |
...
Request body example (HTML in article body):
Code Block | ||
---|---|---|
| ||
{ "name": "Acer SpatialLabs™ View/Pro RMA solution (Qisda DS1) NEW", "description": "added via api", "composite_attributes": { "body": "<h1><span style=\"font-size: 24px;\">Monthly CSD Report</span></h1><table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"width: 900px;\"><tbody id=\"technical_news_table\"><tr><td style=\"width: 240px; text-align: center;\"><div class=\"info\"><span style=\"font-size:20px;\">Update Date</span></div></td><td style=\"width: 544px; text-align: center;\"><div class=\"info\"><span style=\"font-size:20px;\">Subject</span></div></td><td style=\"text-align: center; width: 128px;\"><div class=\"info\"><span style=\"font-size:20px;\">Version</span></div></td><td style=\"width: 138px; text-align: center;\"><div class=\"info\"><span style=\"font-size:20px;\">Owner</span></div></td><td style=\"width: 89px; text-align: center;\"> <div class=\"info\"><span style=\"font-size:20px;\">Link</span></div></td></tr><tr><td style=\"text-align: center; width: 240px;\">2020/05/22</td><td style=\"width: 544px;\">2020 Jan. CSD Monthly Report</td><td style=\"width: 128px; text-align: center;\">V0.1</td><td style=\"width: 138px; text-align: center;\">Vivian Lo</td><td style=\"width: 89px; text-align: center;\"><a href=https://dzf8vqv24eqhg.cloudfront.net/userfiles/14618/18978/ckfinder/files/PAPcsd012020.pdf>Link</a></td></tr><tr><td style=\"width: 240px; text-align: center;\">2020/05/22</td><td style=\"width: 544px;\">2020 Feb. CSD Monthly Report</td><td style=\"width: 128px; text-align: center;\">V0.1</td><td style=\"width: 138px; text-align: center;\">Vivian Lo</td><td style=\"width: 89px; text-align: center;\"><a href=https://dzf8vqv24eqhg.cloudfront.net/userfiles/14618/18978/ckfinder/files/PAPcsd022020.pdf>Link</a></td></tr><tr><td style=\"text-align: center; width: 240px;\">2020/05/22</td><td style=\"width: 544px;\">2020 Mar. CSD Monthly Report</td><td style=\"width: 128px; text-align: center;\">V0.1</td><td style=\"width: 138px; text-align: center;\">Vivian Lo</td><td style=\"width: 89px; text-align: center;\"><p><a href=https: //dzf8vqv24eqhg.cloudfront.net/userfiles/14618/18978/ckfinder/files/PAPcsd032020.pdf>Link</a></p></td></tr>" }, "community_ids": [ <valid_community_id> ] } |
...