All URIs are relative to https://kingsrook.localhost-testsubdomain1.infopluswms.com:8443/infoplus-wms/api
Method | HTTP request | Description |
---|---|---|
addWorkActivity | POST /beta/workActivity | Create a workActivity |
addWorkActivityAudit | PUT /beta/workActivity/{workActivityId}/audit/{workActivityAudit} | Add new audit for a workActivity |
addWorkActivityFile | POST /beta/workActivity/{workActivityId}/file/{fileName} | Attach a file to a workActivity |
addWorkActivityFileByURL | POST /beta/workActivity/{workActivityId}/file | Attach a file to a workActivity by URL. |
addWorkActivityTag | PUT /beta/workActivity/{workActivityId}/tag/{workActivityTag} | Add new tags for a workActivity. |
deleteWorkActivity | DELETE /beta/workActivity/{workActivityId} | Delete a workActivity |
deleteWorkActivityFile | DELETE /beta/workActivity/{workActivityId}/file/{fileId} | Delete a file for a workActivity. |
deleteWorkActivityTag | DELETE /beta/workActivity/{workActivityId}/tag/{workActivityTag} | Delete a tag for a workActivity. |
getDuplicateWorkActivityById | GET /beta/workActivity/duplicate/{workActivityId} | Get a duplicated a workActivity by id |
getWorkActivityByFilter | GET /beta/workActivity/search | Search workActivitys by filter |
getWorkActivityById | GET /beta/workActivity/{workActivityId} | Get a workActivity by id |
getWorkActivityFiles | GET /beta/workActivity/{workActivityId}/file | Get the files for a workActivity. |
getWorkActivityTags | GET /beta/workActivity/{workActivityId}/tag | Get the tags for a workActivity. |
updateWorkActivity | PUT /beta/workActivity | Update a workActivity |
WorkActivity addWorkActivity(body)
Create a workActivity
Inserts a new workActivity using the specified data.
var infoplus = require('infoplus-javascript-client');
var defaultClient = infoplus.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
var apiInstance = new infoplus.WorkActivityApi();
var body = new infoplus.WorkActivity(); // WorkActivity | WorkActivity to be inserted.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.addWorkActivity(body, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | WorkActivity | WorkActivity to be inserted. |
- Content-Type: application/json
- Accept: application/json
addWorkActivityAudit(workActivityId, workActivityAudit)
Add new audit for a workActivity
Adds an audit to an existing workActivity.
var infoplus = require('infoplus-javascript-client');
var defaultClient = infoplus.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
var apiInstance = new infoplus.WorkActivityApi();
var workActivityId = 56; // Number | Id of the workActivity to add an audit to
var workActivityAudit = "workActivityAudit_example"; // String | The audit to add
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.addWorkActivityAudit(workActivityId, workActivityAudit, callback);
Name | Type | Description | Notes |
---|---|---|---|
workActivityId | Number | Id of the workActivity to add an audit to | |
workActivityAudit | String | The audit to add |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
addWorkActivityFile(workActivityId, fileName)
Attach a file to a workActivity
Adds a file to an existing workActivity.
var infoplus = require('infoplus-javascript-client');
var defaultClient = infoplus.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
var apiInstance = new infoplus.WorkActivityApi();
var workActivityId = 56; // Number | Id of the workActivity to add a file to
var fileName = "fileName_example"; // String | Name of file
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.addWorkActivityFile(workActivityId, fileName, callback);
Name | Type | Description | Notes |
---|---|---|---|
workActivityId | Number | Id of the workActivity to add a file to | |
fileName | String | Name of file |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
addWorkActivityFileByURL(body, workActivityId)
Attach a file to a workActivity by URL.
Adds a file to an existing workActivity by URL.
var infoplus = require('infoplus-javascript-client');
var defaultClient = infoplus.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
var apiInstance = new infoplus.WorkActivityApi();
var body = new infoplus.RecordFile(); // RecordFile | The url and optionly fileName to be used.
var workActivityId = 56; // Number | Id of the workActivity to add an file to
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.addWorkActivityFileByURL(body, workActivityId, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | RecordFile | The url and optionly fileName to be used. | |
workActivityId | Number | Id of the workActivity to add an file to |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
addWorkActivityTag(workActivityId, workActivityTag)
Add new tags for a workActivity.
Adds a tag to an existing workActivity.
var infoplus = require('infoplus-javascript-client');
var defaultClient = infoplus.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
var apiInstance = new infoplus.WorkActivityApi();
var workActivityId = 56; // Number | Id of the workActivity to add a tag to
var workActivityTag = "workActivityTag_example"; // String | The tag to add
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.addWorkActivityTag(workActivityId, workActivityTag, callback);
Name | Type | Description | Notes |
---|---|---|---|
workActivityId | Number | Id of the workActivity to add a tag to | |
workActivityTag | String | The tag to add |
null (empty response body)
- Content-Type: application/json
- Accept: application/json
deleteWorkActivity(workActivityId)
Delete a workActivity
Deletes the workActivity identified by the specified id.
var infoplus = require('infoplus-javascript-client');
var defaultClient = infoplus.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
var apiInstance = new infoplus.WorkActivityApi();
var workActivityId = 56; // Number | Id of the workActivity to be deleted.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.deleteWorkActivity(workActivityId, callback);
Name | Type | Description | Notes |
---|---|---|---|
workActivityId | Number | Id of the workActivity to be deleted. |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
deleteWorkActivityFile(workActivityId, fileId)
Delete a file for a workActivity.
Deletes an existing workActivity file using the specified data.
var infoplus = require('infoplus-javascript-client');
var defaultClient = infoplus.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
var apiInstance = new infoplus.WorkActivityApi();
var workActivityId = 56; // Number | Id of the workActivity to remove file from
var fileId = 56; // Number | Id of the file to delete
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.deleteWorkActivityFile(workActivityId, fileId, callback);
Name | Type | Description | Notes |
---|---|---|---|
workActivityId | Number | Id of the workActivity to remove file from | |
fileId | Number | Id of the file to delete |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
deleteWorkActivityTag(workActivityId, workActivityTag)
Delete a tag for a workActivity.
Deletes an existing workActivity tag using the specified data.
var infoplus = require('infoplus-javascript-client');
var defaultClient = infoplus.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
var apiInstance = new infoplus.WorkActivityApi();
var workActivityId = 56; // Number | Id of the workActivity to remove tag from
var workActivityTag = "workActivityTag_example"; // String | The tag to delete
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.deleteWorkActivityTag(workActivityId, workActivityTag, callback);
Name | Type | Description | Notes |
---|---|---|---|
workActivityId | Number | Id of the workActivity to remove tag from | |
workActivityTag | String | The tag to delete |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
WorkActivity getDuplicateWorkActivityById(workActivityId)
Get a duplicated a workActivity by id
Returns a duplicated workActivity identified by the specified id.
var infoplus = require('infoplus-javascript-client');
var defaultClient = infoplus.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
var apiInstance = new infoplus.WorkActivityApi();
var workActivityId = 56; // Number | Id of the workActivity to be duplicated.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getDuplicateWorkActivityById(workActivityId, callback);
Name | Type | Description | Notes |
---|---|---|---|
workActivityId | Number | Id of the workActivity to be duplicated. |
- Content-Type: Not defined
- Accept: application/json
[WorkActivity] getWorkActivityByFilter(opts)
Search workActivitys by filter
Returns the list of workActivitys that match the given filter.
var infoplus = require('infoplus-javascript-client');
var defaultClient = infoplus.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
var apiInstance = new infoplus.WorkActivityApi();
var opts = {
'filter': "filter_example", // String | Query string, used to filter results.
'page': 56, // Number | Result page number. Defaults to 1.
'limit': 56, // Number | Maximum results per page. Defaults to 20. Max allowed value is 250.
'sort': "sort_example" // String | Sort results by specified field.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getWorkActivityByFilter(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
filter | String | Query string, used to filter results. | [optional] |
page | Number | Result page number. Defaults to 1. | [optional] |
limit | Number | Maximum results per page. Defaults to 20. Max allowed value is 250. | [optional] |
sort | String | Sort results by specified field. | [optional] |
- Content-Type: Not defined
- Accept: application/json
WorkActivity getWorkActivityById(workActivityId)
Get a workActivity by id
Returns the workActivity identified by the specified id.
var infoplus = require('infoplus-javascript-client');
var defaultClient = infoplus.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
var apiInstance = new infoplus.WorkActivityApi();
var workActivityId = 56; // Number | Id of the workActivity to be returned.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getWorkActivityById(workActivityId, callback);
Name | Type | Description | Notes |
---|---|---|---|
workActivityId | Number | Id of the workActivity to be returned. |
- Content-Type: Not defined
- Accept: application/json
getWorkActivityFiles(workActivityId)
Get the files for a workActivity.
Get all existing workActivity files.
var infoplus = require('infoplus-javascript-client');
var defaultClient = infoplus.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
var apiInstance = new infoplus.WorkActivityApi();
var workActivityId = 56; // Number | Id of the workActivity to get files for
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.getWorkActivityFiles(workActivityId, callback);
Name | Type | Description | Notes |
---|---|---|---|
workActivityId | Number | Id of the workActivity to get files for |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
getWorkActivityTags(workActivityId)
Get the tags for a workActivity.
Get all existing workActivity tags.
var infoplus = require('infoplus-javascript-client');
var defaultClient = infoplus.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
var apiInstance = new infoplus.WorkActivityApi();
var workActivityId = 56; // Number | Id of the workActivity to get tags for
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.getWorkActivityTags(workActivityId, callback);
Name | Type | Description | Notes |
---|---|---|---|
workActivityId | Number | Id of the workActivity to get tags for |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
updateWorkActivity(body)
Update a workActivity
Updates an existing workActivity using the specified data.
var infoplus = require('infoplus-javascript-client');
var defaultClient = infoplus.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
var apiInstance = new infoplus.WorkActivityApi();
var body = new infoplus.WorkActivity(); // WorkActivity | WorkActivity to be updated.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.updateWorkActivity(body, callback);
Name | Type | Description | Notes |
---|---|---|---|
body | WorkActivity | WorkActivity to be updated. |
null (empty response body)
- Content-Type: application/json
- Accept: application/json