All URIs are relative to https://backend.id4i.de
| Method | HTTP request | Description |
|---|---|---|
| addItem | POST /api/v1/history/{id4n} | Add history item |
| filteredList | GET /api/v1/history/{id4n} | List history |
| list | GET /api/v1/history/{id4n}/{organizationId} | DEPRECATED - List history |
| retrieveItem | GET /api/v1/history/{id4n}/{organizationId}/{sequenceId} | Get history item |
| updateItem | PATCH /api/v1/history/{id4n}/{organizationId}/{sequenceId} | Update history item |
| updateItemVisibility | PUT /api/v1/history/{id4n}/{organizationId}/{sequenceId}/visibility | Set history item visibility |
addItem(id4n, historyItem)
Add history item
Add a new history item
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.HistoryApi();
var id4n = "id4n_example"; // String | GUID to retrieve the history for
var historyItem = new Id4iApi.HistoryItem(); // HistoryItem | The history item to publish
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.addItem(id4n, historyItem, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | String | GUID to retrieve the history for | |
| historyItem | HistoryItem | The history item to publish |
null (empty response body)
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
PaginatedResponseOfHistoryItem filteredList(id4n, opts)
List history
Lists the history of a GUID
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.HistoryApi();
var id4n = "id4n_example"; // String | GUID to retrieve the history for
var opts = {
'includePrivate': true, // Boolean | Also return private history entries
'organization': "organization_example", // String | Show only entries created by one of the given organizations. This parameter can be used multiple times.
'type': ["type_example"], // [String] | Show only entries matching one of the given history item types. This parameter can be used multiple times.
'qualifier': ["qualifier_example"], // [String] | Show only entries matching one of the given history item qualifiers (additional property de.id4i.history.item.qualifier). This parameter can be used multiple times.
'fromDate': new Date("2013-10-20T19:20:30+01:00"), // Date | From date time as UTC Date-Time format
'toDate': new Date("2013-10-20T19:20:30+01:00"), // Date | To date time as UTC Date-Time format
'offset': 56, // Number | Start with the n-th element
'limit': 56 // Number | The maximum count of returned elements
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.filteredList(id4n, opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | String | GUID to retrieve the history for | |
| includePrivate | Boolean | Also return private history entries | [optional] [default to true] |
| organization | String | Show only entries created by one of the given organizations. This parameter can be used multiple times. | [optional] |
| type | [String] | Show only entries matching one of the given history item types. This parameter can be used multiple times. | [optional] |
| qualifier | [String] | Show only entries matching one of the given history item qualifiers (additional property de.id4i.history.item.qualifier). This parameter can be used multiple times. | [optional] |
| fromDate | Date | From date time as UTC Date-Time format | [optional] |
| toDate | Date | To date time as UTC Date-Time format | [optional] |
| offset | Number | Start with the n-th element | [optional] |
| limit | Number | The maximum count of returned elements | [optional] |
PaginatedResponseOfHistoryItem
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
PaginatedResponseOfHistoryItem list(id4n, organizationId, opts)
DEPRECATED - List history
DEPRECATED - please use filteredList with organization parameter to achieve the same functionality
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.HistoryApi();
var id4n = "id4n_example"; // String | GUID to retrieve the history for
var organizationId = "organizationId_example"; // String | organizationId
var opts = {
'includePrivate': true, // Boolean | Also return private history entries
'offset': 56, // Number | Start with the n-th element
'limit': 56 // Number | The maximum count of returned elements
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.list(id4n, organizationId, opts, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | String | GUID to retrieve the history for | |
| organizationId | String | organizationId | |
| includePrivate | Boolean | Also return private history entries | [optional] [default to true] |
| offset | Number | Start with the n-th element | [optional] |
| limit | Number | The maximum count of returned elements | [optional] |
PaginatedResponseOfHistoryItem
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
HistoryItem retrieveItem(id4n, organizationId, sequenceId)
Get history item
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.HistoryApi();
var id4n = "id4n_example"; // String | GUID to retrieve the history for
var organizationId = "organizationId_example"; // String | organizationId
var sequenceId = 56; // Number | sequenceId
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.retrieveItem(id4n, organizationId, sequenceId, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | String | GUID to retrieve the history for | |
| organizationId | String | organizationId | |
| sequenceId | Number | sequenceId |
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
HistoryItem updateItem(id4n, organizationId, sequenceId, update)
Update history item
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.HistoryApi();
var id4n = "id4n_example"; // String | GUID to retrieve the history for
var organizationId = "organizationId_example"; // String | organizationId
var sequenceId = 56; // Number | sequenceId
var update = new Id4iApi.HistoryItemUpdate(); // HistoryItemUpdate | update
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updateItem(id4n, organizationId, sequenceId, update, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | String | GUID to retrieve the history for | |
| organizationId | String | organizationId | |
| sequenceId | Number | sequenceId | |
| update | HistoryItemUpdate | update |
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json
HistoryItem updateItemVisibility(id4n, organizationId, sequenceId, visibility)
Set history item visibility
var Id4iApi = require('id4i_api');
var defaultClient = Id4iApi.ApiClient.instance;
// Configure API key authorization: Authorization
var Authorization = defaultClient.authentications['Authorization'];
Authorization.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Authorization.apiKeyPrefix = 'Token';
var apiInstance = new Id4iApi.HistoryApi();
var id4n = "id4n_example"; // String | GUID to retrieve the history for
var organizationId = "organizationId_example"; // String | organizationId
var sequenceId = 56; // Number | sequenceId
var visibility = new Id4iApi.Visibility(); // Visibility | History item visibility restrictions
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updateItemVisibility(id4n, organizationId, sequenceId, visibility, callback);| Name | Type | Description | Notes |
|---|---|---|---|
| id4n | String | GUID to retrieve the history for | |
| organizationId | String | organizationId | |
| sequenceId | Number | sequenceId | |
| visibility | Visibility | History item visibility restrictions |
- Content-Type: application/xml, application/json
- Accept: application/xml, application/json