Retrieve the list of published objects
GET /api/v1/publish[/<system_object_id>]?token=<token>
Retrieves publishing information.
Path parameters
| parameter | description | 
|---|---|
| system_object_id | System Object ID to get publish information for (integer, optional). If not provided, publish information for all objects is returned | 
Query String
| parameter | description | 
|---|---|
| limit | Maximum number of items returned (integer, optional). When not provided or if it exceeds 1000, a limit of 1000 is used. | 
| offset | Offset in result set (integer, optional). 0 is used if none is requested. | 
| token | Session token acquired with /api/v1/session | 
Output
a list of publish objects.
Permissions
The system right system.api.publish.get is required to use this request.
Publish an object
POST /api/v1/publish?token=<token>
Only new publishing can be done using this API. There is no possibility to update an existing objects. Use DELETE as documented below to remove the object and publish it again.
Input
a list of publish objects.
Requirements
- 
system_object_idmust be set (Integer)
- 
collector,publish_uri,easydb_urimust be set (String)
- 
collectormust be configured as the internal name of one of the collectors in the Base Config.
- 
if versionis set (Integer), it must be> 1and must not be higher than the current version of the object
- 
publish_urimust be a valid URL- if prefixis set in the Base Config for this collector, then the concatenation ofprefix + publish_urimust be a valid URL
 
- if 
If any of these requirements is not met, the publishing of the object will fail with an API error.
Output
a list of publish objects. In addition to the data in input an ID is added for each object.
Query String
| parameter | description | 
|---|---|
| token | Session token acquired with /api/v1/session | 
Permissions
The system right system.api.publish.post is required to use this request.
HTTP status codes
| 400 | API error: error.api.attribute_expectedin case any ofsystem_object_id, collector, publish_uri, easydb_uriare missing | 
| 400 | API error: error.api.invalid_valuein casecollectoris not found in the base config, of (optional)versionis invalid, or the (optional)prefix+publish_uriis not a valid URL | 
| 500 | Server error: generic server error in case something unexpected happens while handling the request | 
De-publish an object
DELETE /api/v1/publish/<publish_id>?token=<token>
Path parameters
| parameter | description | 
|---|---|
| publish_id | ID of publishing object (integer, optional). | 
Query String
| parameter | description | 
|---|---|
| token | Session token acquired with /api/v1/session | 
Permissions
The system right system.api.publish.delete is required to use this request.