All URIs are relative to https://app-us.turnitin.com/api/v1
Method | HTTP request | Description |
---|---|---|
addGroupAttachment | POST /groups/{group_id}/attachments | Add attachment to a group. will create a group if it does not exist. |
deleteGroupAttachment | DELETE /groups/{group_id}/attachments/{attach_id} | Hard delete group attachment |
getGroup | GET /groups/{group_id} | Get group, group context and group context owners info |
getGroupAttachment | GET /groups/{group_id}/attachments/{attach_id} | Get group attachment |
getGroupAttachments | GET /groups/{group_id}/attachments | Get all attachments |
groupsGroupIdPut | PUT /groups/{group_id} | upsert group, group context and group context owners info |
updateGroupAttachment | PATCH /groups/{group_id}/attachments/{attach_id} | Patch a group attachment |
uploadGroupAttachment | PUT /groups/{group_id}/attachments/{attach_id}/original | Upload Submitted File |
AddGroupAttachmentResponse addGroupAttachment(xTurnitinIntegrationName, xTurnitinIntegrationVersion, groupId, data)
Add attachment to a group. will create a group if it does not exist.
import TurnitinCoreApi from 'turnitin_core_api';
let defaultClient = TurnitinCoreApi.ApiClient.instance;
// Configure API key authorization: api_key
let 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';
let apiInstance = new TurnitinCoreApi.GroupsApi();
let xTurnitinIntegrationName = myintegration; // String | a human readable string representing the type of integration being used
let xTurnitinIntegrationVersion = v1.0.2; // String | the version of the integration platform being used
let groupId = "groupId_example"; // String | group_id
let data = new TurnitinCoreApi.AddGroupAttachmentRequest(); // AddGroupAttachmentRequest |
apiInstance.addGroupAttachment(xTurnitinIntegrationName, xTurnitinIntegrationVersion, groupId, data, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
xTurnitinIntegrationName | String | a human readable string representing the type of integration being used | |
xTurnitinIntegrationVersion | String | the version of the integration platform being used | |
groupId | String | group_id | |
data | AddGroupAttachmentRequest |
- Content-Type: application/json
- Accept: application/json
deleteGroupAttachment(xTurnitinIntegrationName, xTurnitinIntegrationVersion, groupId, attachId)
Hard delete group attachment
import TurnitinCoreApi from 'turnitin_core_api';
let defaultClient = TurnitinCoreApi.ApiClient.instance;
// Configure API key authorization: api_key
let 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';
let apiInstance = new TurnitinCoreApi.GroupsApi();
let xTurnitinIntegrationName = myintegration; // String | a human readable string representing the type of integration being used
let xTurnitinIntegrationVersion = v1.0.2; // String | the version of the integration platform being used
let groupId = "groupId_example"; // String | group_id
let attachId = "attachId_example"; // String | The attachment ID (returned from a successful group attachment request)
apiInstance.deleteGroupAttachment(xTurnitinIntegrationName, xTurnitinIntegrationVersion, groupId, attachId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
Name | Type | Description | Notes |
---|---|---|---|
xTurnitinIntegrationName | String | a human readable string representing the type of integration being used | |
xTurnitinIntegrationVersion | String | the version of the integration platform being used | |
groupId | String | group_id | |
attachId | String | The attachment ID (returned from a successful group attachment request) |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
AggregateGroup getGroup(xTurnitinIntegrationName, xTurnitinIntegrationVersion, groupId)
Get group, group context and group context owners info
import TurnitinCoreApi from 'turnitin_core_api';
let defaultClient = TurnitinCoreApi.ApiClient.instance;
// Configure API key authorization: api_key
let 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';
let apiInstance = new TurnitinCoreApi.GroupsApi();
let xTurnitinIntegrationName = myintegration; // String | a human readable string representing the type of integration being used
let xTurnitinIntegrationVersion = v1.0.2; // String | the version of the integration platform being used
let groupId = "groupId_example"; // String | group_id
apiInstance.getGroup(xTurnitinIntegrationName, xTurnitinIntegrationVersion, groupId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
xTurnitinIntegrationName | String | a human readable string representing the type of integration being used | |
xTurnitinIntegrationVersion | String | the version of the integration platform being used | |
groupId | String | group_id |
- Content-Type: Not defined
- Accept: application/json
GroupAttachmentResponse getGroupAttachment(xTurnitinIntegrationName, xTurnitinIntegrationVersion, groupId, attachId)
Get group attachment
import TurnitinCoreApi from 'turnitin_core_api';
let defaultClient = TurnitinCoreApi.ApiClient.instance;
// Configure API key authorization: api_key
let 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';
let apiInstance = new TurnitinCoreApi.GroupsApi();
let xTurnitinIntegrationName = myintegration; // String | a human readable string representing the type of integration being used
let xTurnitinIntegrationVersion = v1.0.2; // String | the version of the integration platform being used
let groupId = "groupId_example"; // String | group_id
let attachId = "attachId_example"; // String | The attachment ID (returned from a successful group attachment request)
apiInstance.getGroupAttachment(xTurnitinIntegrationName, xTurnitinIntegrationVersion, groupId, attachId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
xTurnitinIntegrationName | String | a human readable string representing the type of integration being used | |
xTurnitinIntegrationVersion | String | the version of the integration platform being used | |
groupId | String | group_id | |
attachId | String | The attachment ID (returned from a successful group attachment request) |
- Content-Type: Not defined
- Accept: application/json
GetGroupAttachments200Response getGroupAttachments(xTurnitinIntegrationName, xTurnitinIntegrationVersion, groupId)
Get all attachments
import TurnitinCoreApi from 'turnitin_core_api';
let defaultClient = TurnitinCoreApi.ApiClient.instance;
// Configure API key authorization: api_key
let 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';
let apiInstance = new TurnitinCoreApi.GroupsApi();
let xTurnitinIntegrationName = myintegration; // String | a human readable string representing the type of integration being used
let xTurnitinIntegrationVersion = v1.0.2; // String | the version of the integration platform being used
let groupId = "groupId_example"; // String | group_id
apiInstance.getGroupAttachments(xTurnitinIntegrationName, xTurnitinIntegrationVersion, groupId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
xTurnitinIntegrationName | String | a human readable string representing the type of integration being used | |
xTurnitinIntegrationVersion | String | the version of the integration platform being used | |
groupId | String | group_id |
GetGroupAttachments200Response
- Content-Type: Not defined
- Accept: application/json
AggregateGroup groupsGroupIdPut(xTurnitinIntegrationName, xTurnitinIntegrationVersion, groupId, data)
upsert group, group context and group context owners info
import TurnitinCoreApi from 'turnitin_core_api';
let defaultClient = TurnitinCoreApi.ApiClient.instance;
// Configure API key authorization: api_key
let 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';
let apiInstance = new TurnitinCoreApi.GroupsApi();
let xTurnitinIntegrationName = myintegration; // String | a human readable string representing the type of integration being used
let xTurnitinIntegrationVersion = v1.0.2; // String | the version of the integration platform being used
let groupId = "groupId_example"; // String | group_id
let data = new TurnitinCoreApi.AggregateGroup(); // AggregateGroup |
apiInstance.groupsGroupIdPut(xTurnitinIntegrationName, xTurnitinIntegrationVersion, groupId, data, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
xTurnitinIntegrationName | String | a human readable string representing the type of integration being used | |
xTurnitinIntegrationVersion | String | the version of the integration platform being used | |
groupId | String | group_id | |
data | AggregateGroup |
- Content-Type: application/json
- Accept: application/json
GroupAttachmentResponse updateGroupAttachment(xTurnitinIntegrationName, xTurnitinIntegrationVersion, groupId, attachId, data)
Patch a group attachment
import TurnitinCoreApi from 'turnitin_core_api';
let defaultClient = TurnitinCoreApi.ApiClient.instance;
// Configure API key authorization: api_key
let 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';
let apiInstance = new TurnitinCoreApi.GroupsApi();
let xTurnitinIntegrationName = myintegration; // String | a human readable string representing the type of integration being used
let xTurnitinIntegrationVersion = v1.0.2; // String | the version of the integration platform being used
let groupId = "groupId_example"; // String | group_id
let attachId = "attachId_example"; // String | The attachment ID (returned from a successful group attachment request)
let data = new TurnitinCoreApi.AddGroupAttachmentRequest(); // AddGroupAttachmentRequest |
apiInstance.updateGroupAttachment(xTurnitinIntegrationName, xTurnitinIntegrationVersion, groupId, attachId, data, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
xTurnitinIntegrationName | String | a human readable string representing the type of integration being used | |
xTurnitinIntegrationVersion | String | the version of the integration platform being used | |
groupId | String | group_id | |
attachId | String | The attachment ID (returned from a successful group attachment request) | |
data | AddGroupAttachmentRequest |
- Content-Type: application/json
- Accept: application/json
SuccessMessage uploadGroupAttachment(xTurnitinIntegrationName, xTurnitinIntegrationVersion, groupId, attachId, contentDisposition, file)
Upload Submitted File
import TurnitinCoreApi from 'turnitin_core_api';
let defaultClient = TurnitinCoreApi.ApiClient.instance;
// Configure API key authorization: api_key
let 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';
let apiInstance = new TurnitinCoreApi.GroupsApi();
let xTurnitinIntegrationName = myintegration; // String | a human readable string representing the type of integration being used
let xTurnitinIntegrationVersion = v1.0.2; // String | the version of the integration platform being used
let groupId = "groupId_example"; // String | The Group ID (required to already exist)
let attachId = "attachId_example"; // String | The attachment ID (returned from a successful group attachment request)
let contentDisposition = inline; filename="MyFile.docx"; // String | *must include the \"filename\" parameter, e.g. `inline; filename=\"MyFile.docx\"`
let file = {key: null}; // Object | the attachment file
apiInstance.uploadGroupAttachment(xTurnitinIntegrationName, xTurnitinIntegrationVersion, groupId, attachId, contentDisposition, file, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
xTurnitinIntegrationName | String | a human readable string representing the type of integration being used | |
xTurnitinIntegrationVersion | String | the version of the integration platform being used | |
groupId | String | The Group ID (required to already exist) | |
attachId | String | The attachment ID (returned from a successful group attachment request) | |
contentDisposition | String | *must include the "filename" parameter, e.g. `inline; filename="MyFile.docx"` | |
file | Object | the attachment file |
- Content-Type: binary/octet-stream
- Accept: application/json