All URIs are relative to https://hornet-trunk.dev.xtrf.eu/home-api
Method | HTTP request | Description |
---|---|---|
addFiles | PUT /v2/jobs/{jobId}/files/delivered/add | Adds files to the project as delivered in the job. |
assignVendor | PUT /v2/jobs/{jobId}/vendor | Assigns vendor to a job in a project. |
changeStatus | PUT /v2/jobs/{jobId}/status | Changes job status if possible (400 Bad Request is returned otherwise). |
getDeliveredFiles | GET /v2/jobs/{jobId}/files/delivered | Returns list of files delivered in the job. |
getFileById | GET /v2/jobs/{jobId} | Returns details for a job. |
getSharedReferenceFiles | GET /v2/jobs/{jobId}/files/sharedReferenceFiles | Returns list of files shared with the job as Reference Files. |
getSharedWorkFiles | GET /v2/jobs/{jobId}/files/sharedWorkFiles | Returns list of files shared with the job as Work Files. |
shareAsReferenceFiles | PUT /v2/jobs/{jobId}/files/sharedReferenceFiles/share | Shares selected files as Reference Files with a job in a project. |
shareAsWorkFiles | PUT /v2/jobs/{jobId}/files/sharedWorkFiles/share | Shares selected files as Work Files with a job in a project. |
stopSharing | PUT /v2/jobs/{jobId}/files/stopSharing | Stops sharing selected files with a job in a project. |
updateInstructions | PUT /v2/jobs/{jobId}/instructions | Updates instructions for a job. |
uploadFile1 | POST /v2/jobs/{jobId}/files/delivered/upload | Uploads file to the project as a file delivered in the job. |
addFiles(body, jobId)
Adds files to the project as delivered in the job.
Adds files to the project as delivered in the job. The files have to be uploaded beforehand (see "POST /jobs/{jobId}/files/upload" operation). The following properties can be specified for each file:<ul><li>category (required, 400 Bad Request is returned otherwise)</li><li>languageIds – when the file category depends on a list of languages</li><li>languageCombinationIds – when the file category depends on a list of language combinations</li></ul>
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.JobsSmartV2Api;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: X-AUTH-ACCESS-TOKEN
ApiKeyAuth X-AUTH-ACCESS-TOKEN = (ApiKeyAuth) defaultClient.getAuthentication("X-AUTH-ACCESS-TOKEN");
X-AUTH-ACCESS-TOKEN.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-AUTH-ACCESS-TOKEN.setApiKeyPrefix("Token");
JobsSmartV2Api apiInstance = new JobsSmartV2Api();
FileCategorizationsDto body = new FileCategorizationsDto(); // FileCategorizationsDto | Added files to the project as delivered in the job.
String jobId = "jobId_example"; // String | job's internal identifier
try {
apiInstance.addFiles(body, jobId);
} catch (ApiException e) {
System.err.println("Exception when calling JobsSmartV2Api#addFiles");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | FileCategorizationsDto | Added files to the project as delivered in the job. | |
jobId | String | job's internal identifier |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
assignVendor(body, jobId)
Assigns vendor to a job in a project.
Assigns vendor to a job in a project.
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.JobsSmartV2Api;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: X-AUTH-ACCESS-TOKEN
ApiKeyAuth X-AUTH-ACCESS-TOKEN = (ApiKeyAuth) defaultClient.getAuthentication("X-AUTH-ACCESS-TOKEN");
X-AUTH-ACCESS-TOKEN.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-AUTH-ACCESS-TOKEN.setApiKeyPrefix("Token");
JobsSmartV2Api apiInstance = new JobsSmartV2Api();
VendorPriceProfileDTO body = new VendorPriceProfileDTO(); // VendorPriceProfileDTO | Assigned vendor to a job in a project.
String jobId = "jobId_example"; // String | job's internal identifier
try {
apiInstance.assignVendor(body, jobId);
} catch (ApiException e) {
System.err.println("Exception when calling JobsSmartV2Api#assignVendor");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | VendorPriceProfileDTO | Assigned vendor to a job in a project. | |
jobId | String | job's internal identifier |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
changeStatus(body, jobId)
Changes job status if possible (400 Bad Request is returned otherwise).
Changes job status if possible (400 Bad Request is returned otherwise). The status has to be specified using one of the following keys:<ul><li>OPEN – available when the job has one of the following statuses: ACCEPTED, CANCELED</li><li>ACCEPTED – available when the job has one of the following statuses: OPEN (Vendor and dates have to be set before calling the operation), STARTED</li><li>STARTED – available when the job has one of the following statuses: ACCEPTED, READY</li><li>READY – available when the job has one of the following statuses: STARTED</li><li>CANCELLED – available when the job has one of the following statuses: OPEN, ACCEPTED, STARTED, OFFERS_SENT</li><li>OFFERS_SENT – not available as a target status for this operation</li></ul>
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.JobsSmartV2Api;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: X-AUTH-ACCESS-TOKEN
ApiKeyAuth X-AUTH-ACCESS-TOKEN = (ApiKeyAuth) defaultClient.getAuthentication("X-AUTH-ACCESS-TOKEN");
X-AUTH-ACCESS-TOKEN.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-AUTH-ACCESS-TOKEN.setApiKeyPrefix("Token");
JobsSmartV2Api apiInstance = new JobsSmartV2Api();
JobStatusDTO body = new JobStatusDTO(); // JobStatusDTO | Changed job status.
String jobId = "jobId_example"; // String | job's internal identifier
try {
apiInstance.changeStatus(body, jobId);
} catch (ApiException e) {
System.err.println("Exception when calling JobsSmartV2Api#changeStatus");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | JobStatusDTO | Changed job status. | |
jobId | String | job's internal identifier |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
List<ProjectFileDto> getDeliveredFiles(jobId)
Returns list of files delivered in the job.
Returns list of files delivered in the job.
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.JobsSmartV2Api;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: X-AUTH-ACCESS-TOKEN
ApiKeyAuth X-AUTH-ACCESS-TOKEN = (ApiKeyAuth) defaultClient.getAuthentication("X-AUTH-ACCESS-TOKEN");
X-AUTH-ACCESS-TOKEN.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-AUTH-ACCESS-TOKEN.setApiKeyPrefix("Token");
JobsSmartV2Api apiInstance = new JobsSmartV2Api();
String jobId = "jobId_example"; // String | job's internal identifier
try {
List<ProjectFileDto> result = apiInstance.getDeliveredFiles(jobId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JobsSmartV2Api#getDeliveredFiles");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
jobId | String | job's internal identifier |
- Content-Type: Not defined
- Accept: application/json;charset=UTF-8
ProjectFileDto getFileById(jobId)
Returns details for a job.
Returns details for a job.
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.JobsSmartV2Api;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: X-AUTH-ACCESS-TOKEN
ApiKeyAuth X-AUTH-ACCESS-TOKEN = (ApiKeyAuth) defaultClient.getAuthentication("X-AUTH-ACCESS-TOKEN");
X-AUTH-ACCESS-TOKEN.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-AUTH-ACCESS-TOKEN.setApiKeyPrefix("Token");
JobsSmartV2Api apiInstance = new JobsSmartV2Api();
String jobId = "jobId_example"; // String | job's internal identifier
try {
ProjectFileDto result = apiInstance.getFileById(jobId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JobsSmartV2Api#getFileById");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
jobId | String | job's internal identifier |
- Content-Type: Not defined
- Accept: application/json;charset=UTF-8
List<ProjectFileDto> getSharedReferenceFiles(jobId)
Returns list of files shared with the job as Reference Files.
Returns list of files shared with the job as Reference Files.
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.JobsSmartV2Api;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: X-AUTH-ACCESS-TOKEN
ApiKeyAuth X-AUTH-ACCESS-TOKEN = (ApiKeyAuth) defaultClient.getAuthentication("X-AUTH-ACCESS-TOKEN");
X-AUTH-ACCESS-TOKEN.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-AUTH-ACCESS-TOKEN.setApiKeyPrefix("Token");
JobsSmartV2Api apiInstance = new JobsSmartV2Api();
String jobId = "jobId_example"; // String | job's internal identifier
try {
List<ProjectFileDto> result = apiInstance.getSharedReferenceFiles(jobId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JobsSmartV2Api#getSharedReferenceFiles");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
jobId | String | job's internal identifier |
- Content-Type: Not defined
- Accept: application/json;charset=UTF-8
List<ProjectFileDto> getSharedWorkFiles(jobId)
Returns list of files shared with the job as Work Files.
Returns list of files shared with the job as Work Files.
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.JobsSmartV2Api;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: X-AUTH-ACCESS-TOKEN
ApiKeyAuth X-AUTH-ACCESS-TOKEN = (ApiKeyAuth) defaultClient.getAuthentication("X-AUTH-ACCESS-TOKEN");
X-AUTH-ACCESS-TOKEN.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-AUTH-ACCESS-TOKEN.setApiKeyPrefix("Token");
JobsSmartV2Api apiInstance = new JobsSmartV2Api();
String jobId = "jobId_example"; // String | job's internal identifier
try {
List<ProjectFileDto> result = apiInstance.getSharedWorkFiles(jobId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JobsSmartV2Api#getSharedWorkFiles");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
jobId | String | job's internal identifier |
- Content-Type: Not defined
- Accept: application/json;charset=UTF-8
FilesShareStatusDto shareAsReferenceFiles(body, jobId)
Shares selected files as Reference Files with a job in a project.
Shares selected files as Reference Files with a job in a project. The files and the job have to be part of the same project. The operation is finished successfully even if some of the selected files were already shared with the job. If a file was shared with the job as Work File, it will now be shared as Reference File (and not as Work File).
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.JobsSmartV2Api;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: X-AUTH-ACCESS-TOKEN
ApiKeyAuth X-AUTH-ACCESS-TOKEN = (ApiKeyAuth) defaultClient.getAuthentication("X-AUTH-ACCESS-TOKEN");
X-AUTH-ACCESS-TOKEN.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-AUTH-ACCESS-TOKEN.setApiKeyPrefix("Token");
JobsSmartV2Api apiInstance = new JobsSmartV2Api();
FilesDto body = new FilesDto(); // FilesDto | Shared selected files as Reference Files with a job in a project.
String jobId = "jobId_example"; // String | job's internal identifier
try {
FilesShareStatusDto result = apiInstance.shareAsReferenceFiles(body, jobId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JobsSmartV2Api#shareAsReferenceFiles");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | FilesDto | Shared selected files as Reference Files with a job in a project. | |
jobId | String | job's internal identifier |
- Content-Type: application/json;charset=UTF-8
- Accept: application/json;charset=UTF-8
FilesShareStatusDto shareAsWorkFiles(body, jobId)
Shares selected files as Work Files with a job in a project.
Shares selected files as Work Files with a job in a project. The files and the job have to be part of the same project. The operation is finished successfully even if some of the selected files were already shared with the job. If a file was shared with the job as Reference File, it will now be shared as Work File (and not as Reference File).
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.JobsSmartV2Api;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: X-AUTH-ACCESS-TOKEN
ApiKeyAuth X-AUTH-ACCESS-TOKEN = (ApiKeyAuth) defaultClient.getAuthentication("X-AUTH-ACCESS-TOKEN");
X-AUTH-ACCESS-TOKEN.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-AUTH-ACCESS-TOKEN.setApiKeyPrefix("Token");
JobsSmartV2Api apiInstance = new JobsSmartV2Api();
FilesDto body = new FilesDto(); // FilesDto | Shared selected files as Work Files with a job in a project.
String jobId = "jobId_example"; // String | job's internal identifier
try {
FilesShareStatusDto result = apiInstance.shareAsWorkFiles(body, jobId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JobsSmartV2Api#shareAsWorkFiles");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | FilesDto | Shared selected files as Work Files with a job in a project. | |
jobId | String | job's internal identifier |
- Content-Type: application/json;charset=UTF-8
- Accept: application/json;charset=UTF-8
FilesShareStatusDto stopSharing(body, jobId)
Stops sharing selected files with a job in a project.
Stops sharing selected files with a job in a project. The files and the job have to be part of the same project. The operation is finished successfully even if some of the selected files were not shared with the job.
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.JobsSmartV2Api;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: X-AUTH-ACCESS-TOKEN
ApiKeyAuth X-AUTH-ACCESS-TOKEN = (ApiKeyAuth) defaultClient.getAuthentication("X-AUTH-ACCESS-TOKEN");
X-AUTH-ACCESS-TOKEN.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-AUTH-ACCESS-TOKEN.setApiKeyPrefix("Token");
JobsSmartV2Api apiInstance = new JobsSmartV2Api();
FilesDto body = new FilesDto(); // FilesDto | File sharing stopped for a project task.
String jobId = "jobId_example"; // String | job's internal identifier
try {
FilesShareStatusDto result = apiInstance.stopSharing(body, jobId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JobsSmartV2Api#stopSharing");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | FilesDto | File sharing stopped for a project task. | |
jobId | String | job's internal identifier |
- Content-Type: application/json;charset=UTF-8
- Accept: application/json;charset=UTF-8
updateInstructions(body, jobId)
Updates instructions for a job.
Updates instructions for a job. See also "PUT /projects/{projectId}/vendorInstructions" and "PUT /quotes/{quoteId}/vendorInstructions" for updating instructions for all jobs in a project or quote.
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.JobsSmartV2Api;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: X-AUTH-ACCESS-TOKEN
ApiKeyAuth X-AUTH-ACCESS-TOKEN = (ApiKeyAuth) defaultClient.getAuthentication("X-AUTH-ACCESS-TOKEN");
X-AUTH-ACCESS-TOKEN.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-AUTH-ACCESS-TOKEN.setApiKeyPrefix("Token");
JobsSmartV2Api apiInstance = new JobsSmartV2Api();
StringDTO body = new StringDTO(); // StringDTO | Updated instructions for a job.
String jobId = "jobId_example"; // String | job's internal identifier
try {
apiInstance.updateInstructions(body, jobId);
} catch (ApiException e) {
System.err.println("Exception when calling JobsSmartV2Api#updateInstructions");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | StringDTO | Updated instructions for a job. | |
jobId | String | job's internal identifier |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
FileDto uploadFile1(file, fileName, jobId)
Uploads file to the project as a file delivered in the job.
Uploads file to the project as a file delivered in the job. Only one file can be uploaded at once. When the upload is finished the file has to be added by specifying its category and languages (see "PUT /jobs/{jobId}/files/add" operation).
// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.JobsSmartV2Api;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: X-AUTH-ACCESS-TOKEN
ApiKeyAuth X-AUTH-ACCESS-TOKEN = (ApiKeyAuth) defaultClient.getAuthentication("X-AUTH-ACCESS-TOKEN");
X-AUTH-ACCESS-TOKEN.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-AUTH-ACCESS-TOKEN.setApiKeyPrefix("Token");
JobsSmartV2Api apiInstance = new JobsSmartV2Api();
File file = new File("file_example"); // File |
String fileName = "fileName_example"; // String |
String jobId = "jobId_example"; // String | job's internal identifier
try {
FileDto result = apiInstance.uploadFile1(file, fileName, jobId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling JobsSmartV2Api#uploadFile1");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
file | File | ||
fileName | String | ||
jobId | String | job's internal identifier |
- Content-Type: multipart/form-data
- Accept: application/json;charset=UTF-8