com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.

Creating an Asset via the Publisher REST API

Overview

DescriptionCreate an asset.
Resource Path
/assets?type={asset_type}
URL
/publisher/apis/assets?type={asset_type} 
HTTP MethodPOST

Request


Response

Sample response

{  
   "attributes":{  
      "overview_provider":"wso2",
      "overview_name":"foo2",
      "overview_version":"1.0.0",
      "overview_createdtime":"00000001439362257587"
   },
   "name":"foo2",
   "id":"6c96bd41-e8fd-417c-ab45-42e6ad1fa49b",
   "type":"gadget",
   "path":"/_system/governance/gadgets/wso2/foo2/1.0.0",
   "lifecycle":"SampleLifeCycle2",
   "lifecycleState":"Initial",
   "mediaType":"application/vnd.wso2-gadget+xml",
   "content":{  

   },
   "thumbnail":"",
   "banner":"",
   "rating":0,
   "version":"1.0.0",
   "_default":true
} 

For information on all the properties in the assets definition, see the Asset Resource Definition.

HTTP status codes

ResponseHTTP Status Codes
Success

100, 201

Error400, 401, 415, 500, 501

For more information on the status codes, see HTTP Status Codes.

com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.