All URIs are relative to https://hornet-trunk.dev.xtrf.eu/home-api
Method | HTTP request | Description |
---|---|---|
addFileLinks | POST /v2/projects/{projectId}/files/addLink | Adds file links to the project as added by PM. |
addFiles1 | PUT /v2/projects/{projectId}/files/add | Adds files to the project as added by PM. |
archive | POST /v2/projects/files/archive | Prepares a ZIP archive that contains the specified files. |
changeStatus1 | PUT /v2/projects/{projectId}/status | Changes project status if possible (400 Bad Request is returned otherwise). |
create2 | POST /v2/projects | Creates a new Smart Project. |
createPayable | POST /v2/projects/{projectId}/finance/payables | Adds a payable to a project. |
createReceivable | POST /v2/projects/{projectId}/finance/receivables | Adds a receivable to a project. |
deletePayable | DELETE /v2/projects/{projectId}/finance/payables/{payableId} | Deletes a payable. |
deleteReceivable | DELETE /v2/projects/{projectId}/finance/receivables/{receivableId} | Deletes a receivable. |
getById9 | GET /v2/projects/{projectId} | Returns project details. |
getCATToolProjectInfo | GET /v2/projects/{projectId}/catToolProject | Returns if cat tool project is created or queued. |
getContacts2 | GET /v2/projects/{projectId}/clientContacts | Returns Client Contacts information for a project. |
getCustomFields8 | GET /v2/projects/{projectId}/customFields | Returns a list of custom field keys and values for a project. |
getDeliverableFiles | GET /v2/projects/{projectId}/files/deliverable | Returns list of files in a project, that are ready to be delivered to client. |
getFileById1 | GET /v2/projects/files/{fileId} | Returns details of a file. |
getFileContentById | GET /v2/projects/files/{fileId}/download/{fileName} | Downloads a file content. |
getFiles | GET /v2/projects/{projectId}/files | Returns list of files in a project. |
getFinance2 | GET /v2/projects/{projectId}/finance | Returns finance information for a project. |
getJobs | GET /v2/projects/{projectId}/jobs | Returns list of jobs in a project. |
updateClientDeadline | PUT /v2/projects/{projectId}/clientDeadline | Updates Client Deadline for a project. |
updateClientNotes | PUT /v2/projects/{projectId}/clientNotes | Updates Client Notes for a project. |
updateClientReferenceNumber | PUT /v2/projects/{projectId}/clientReferenceNumber | Updates Client Reference Number for a project. |
updateContacts | PUT /v2/projects/{projectId}/clientContacts | Updates Client Contacts for a project. |
updateCustomField | PUT /v2/projects/{projectId}/customFields/{key} | Updates a custom field with a specified key in a project |
updateInternalNotes | PUT /v2/projects/{projectId}/internalNotes | Updates Internal Notes for a project. |
updateOrderedOn | PUT /v2/projects/{projectId}/orderDate | Updates Order Date for a project. |
updatePayable | PUT /v2/projects/{projectId}/finance/payables/{payableId} | Updates a payable. |
updateReceivable | PUT /v2/projects/{projectId}/finance/receivables/{receivableId} | Updates a receivable. |
updateSourceLanguage | PUT /v2/projects/{projectId}/sourceLanguage | Updates source language for a project. |
updateSpecialization | PUT /v2/projects/{projectId}/specialization | Updates specialization for a project. |
updateTargetLanguages | PUT /v2/projects/{projectId}/targetLanguages | Updates target languages for a project. |
updateVendorInstructions | PUT /v2/projects/{projectId}/vendorInstructions | Updates instructions for all vendors performing the jobs in a project. |
updateVolume | PUT /v2/projects/{projectId}/volume | Updates volume for a project. |
uploadFile2 | POST /v2/projects/{projectId}/files/upload | Uploads file to the project as a file uploaded by PM. |
FilesDto addFileLinks(body, projectId)
Adds file links to the project as added by PM.
Adds file links to the project as added by PM. The following properties can be specified for each file link:<ul><li>url (required, 400 Bad Request is returned otherwise)</li><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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
FileLinkCategorizationsDto body = new FileLinkCategorizationsDto(); // FileLinkCategorizationsDto | Added file links to the project as added by PM.
String projectId = "projectId_example"; // String | project's internal identifier
try {
FilesDto result = apiInstance.addFileLinks(body, projectId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#addFileLinks");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | FileLinkCategorizationsDto | Added file links to the project as added by PM. | |
projectId | String | project's internal identifier |
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
addFiles1(body, projectId)
Adds files to the project as added by PM.
Adds files to the project as added by PM. The files have to be uploaded beforehand (see "POST /v2/projects/{projectId}/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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
FileCategorizationsDto body = new FileCategorizationsDto(); // FileCategorizationsDto | Added files to the project as added by PM.
String projectId = "projectId_example"; // String | project's internal identifier
try {
apiInstance.addFiles1(body, projectId);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#addFiles1");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | FileCategorizationsDto | Added files to the project as added by PM. | |
projectId | String | project's internal identifier |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
FilesArchiveDto archive(body)
Prepares a ZIP archive that contains the specified files.
Prepares a ZIP archive that contains the specified 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
FilesDto body = new FilesDto(); // FilesDto | Prepared ZIP archive that contains the specified files.
try {
FilesArchiveDto result = apiInstance.archive(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#archive");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | FilesDto | Prepared ZIP archive that contains the specified files. |
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
changeStatus1(body, projectId)
Changes project status if possible (400 Bad Request is returned otherwise).
Changes project status if possible (400 Bad Request is returned otherwise). The status has to be specified using one of the following keys: <ul><li>CANCELLED – available when the job has one of the following statuses: OPEN, STARTED</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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
ProjectStatusDTO body = new ProjectStatusDTO(); // ProjectStatusDTO | Changed project status.
String projectId = "projectId_example"; // String | project's internal identifier
try {
apiInstance.changeStatus1(body, projectId);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#changeStatus1");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ProjectStatusDTO | Changed project status. | |
projectId | String | project's internal identifier |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
ProjectDTO create2(body)
Creates a new Smart Project.
Creates a new Smart Project. If the specified service ID refers to Classic Project, 400 Bad Request is returned instead.
// 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
ProjectCreateDTO body = new ProjectCreateDTO(); // ProjectCreateDTO |
try {
ProjectDTO result = apiInstance.create2(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#create2");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ProjectCreateDTO | [optional] |
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
PayableDTO createPayable(body, projectId)
Adds a payable to a project.
Adds a payable to 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
PayableCreateDTO body = new PayableCreateDTO(); // PayableCreateDTO |
String projectId = "projectId_example"; // String | project's internal identifier
try {
PayableDTO result = apiInstance.createPayable(body, projectId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#createPayable");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | PayableCreateDTO | ||
projectId | String | project's internal identifier |
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
ReceivableDTO createReceivable(body, projectId)
Adds a receivable to a project.
Adds a receivable to 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
ReceivableCreateDTO body = new ReceivableCreateDTO(); // ReceivableCreateDTO |
String projectId = "projectId_example"; // String | project's internal identifier
try {
ReceivableDTO result = apiInstance.createReceivable(body, projectId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#createReceivable");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ReceivableCreateDTO | ||
projectId | String | project's internal identifier |
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
deletePayable(projectId, payableId)
Deletes a payable.
Deletes a payable.
// 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
String projectId = "projectId_example"; // String | project's internal identifier
Long payableId = 789L; // Long | payable's internal identifier
try {
apiInstance.deletePayable(projectId, payableId);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#deletePayable");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | project's internal identifier | |
payableId | Long | payable's internal identifier |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
deleteReceivable(projectId, receivableId)
Deletes a receivable.
Deletes a receivable.
// 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
String projectId = "projectId_example"; // String | project's internal identifier
Long receivableId = 789L; // Long | receivable's internal identifier
try {
apiInstance.deleteReceivable(projectId, receivableId);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#deleteReceivable");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | project's internal identifier | |
receivableId | Long | receivable's internal identifier |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
ProjectDTO getById9(projectId)
Returns project details.
Returns project details. If the specified project ID refers to Classic Project, 400 Bad Request is returned instead.
// 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
String projectId = "projectId_example"; // String | project's internal identifier
try {
ProjectDTO result = apiInstance.getById9(projectId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#getById9");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | project's internal identifier |
- Content-Type: Not defined
- Accept: application/json;charset=UTF-8
CATToolProjectDTO getCATToolProjectInfo(projectId)
Returns if cat tool project is created or queued.
// 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
String projectId = "projectId_example"; // String |
try {
CATToolProjectDTO result = apiInstance.getCATToolProjectInfo(projectId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#getCATToolProjectInfo");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | String |
- Content-Type: Not defined
- Accept: application/json;charset=UTF-8
SmartContactsDTO getContacts2(projectId)
Returns Client Contacts information for a project.
Returns Client Contacts information for 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
String projectId = "projectId_example"; // String | project's internal identifier
try {
SmartContactsDTO result = apiInstance.getContacts2(projectId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#getContacts2");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | project's internal identifier |
- Content-Type: Not defined
- Accept: application/json;charset=UTF-8
CustomFieldsDTO getCustomFields8(projectId)
Returns a list of custom field keys and values for a project.
Returns a list of custom field keys and values for 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
String projectId = "projectId_example"; // String | project's internal identifier
try {
CustomFieldsDTO result = apiInstance.getCustomFields8(projectId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#getCustomFields8");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | project's internal identifier |
- Content-Type: Not defined
- Accept: application/json;charset=UTF-8
List<ProjectFileDto> getDeliverableFiles(projectId)
Returns list of files in a project, that are ready to be delivered to client.
Returns list of files in a project, that are ready to be delivered to client. A file is considered deliverable to client when all of the following criteria are met:<ul><li>the file was added to a job in the last step in the process</li><li>the file is marked as verified (if it was added in a verification step and the file is verifiable, according to its category)</li><li>the job is finished (has Ready status)</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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
String projectId = "projectId_example"; // String | project's internal identifier
try {
List<ProjectFileDto> result = apiInstance.getDeliverableFiles(projectId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#getDeliverableFiles");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | project's internal identifier |
- Content-Type: Not defined
- Accept: application/json;charset=UTF-8
ProjectFileDto getFileById1(fileId)
Returns details of a file.
Returns details of a 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
String fileId = "fileId_example"; // String | file's internal identifier
try {
ProjectFileDto result = apiInstance.getFileById1(fileId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#getFileById1");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
fileId | String | file's internal identifier |
- Content-Type: Not defined
- Accept: application/json;charset=UTF-8
getFileContentById(fileId, fileName)
Downloads a file content.
Downloads a file content.
// 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
String fileId = "fileId_example"; // String | file's internal identifier
String fileName = "fileName_example"; // String | file's name
try {
apiInstance.getFileContentById(fileId, fileName);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#getFileContentById");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
fileId | String | file's internal identifier | |
fileName | String | file's name |
null (empty response body)
- Content-Type: Not defined
- Accept: multipart/form-data
List<ProjectFileDto> getFiles(projectId)
Returns list of files in a project.
Returns list of files in a project. Only files added to the project (i.e. files that have assigned category and languages) are listed.
// 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
String projectId = "projectId_example"; // String | project's internal identifier
try {
List<ProjectFileDto> result = apiInstance.getFiles(projectId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#getFiles");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | project's internal identifier |
- Content-Type: Not defined
- Accept: application/json;charset=UTF-8
FinanceDTO getFinance2(projectId)
Returns finance information for a project.
Returns finance information for 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
String projectId = "projectId_example"; // String | project's internal identifier
try {
FinanceDTO result = apiInstance.getFinance2(projectId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#getFinance2");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | project's internal identifier |
- Content-Type: Not defined
- Accept: application/json;charset=UTF-8
List<JobDto> getJobs(projectId)
Returns list of jobs in a project.
Returns list of jobs 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
String projectId = "projectId_example"; // String | project's internal identifier
try {
List<JobDto> result = apiInstance.getJobs(projectId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#getJobs");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
projectId | String | project's internal identifier |
- Content-Type: Not defined
- Accept: application/json;charset=UTF-8
updateClientDeadline(body, projectId)
Updates Client Deadline for a project.
Updates Client Deadline for 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
TimeDTO body = new TimeDTO(); // TimeDTO | Updated Client Deadline for a project.
String projectId = "projectId_example"; // String | project's internal identifier
try {
apiInstance.updateClientDeadline(body, projectId);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#updateClientDeadline");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | TimeDTO | Updated Client Deadline for a project. | |
projectId | String | project's internal identifier |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
updateClientNotes(body, projectId)
Updates Client Notes for a project.
Updates Client Notes for 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
StringDTO body = new StringDTO(); // StringDTO | Updated Client Notes for a project.
String projectId = "projectId_example"; // String | project's internal identifier
try {
apiInstance.updateClientNotes(body, projectId);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#updateClientNotes");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | StringDTO | Updated Client Notes for a project. | |
projectId | String | project's internal identifier |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
updateClientReferenceNumber(body, projectId)
Updates Client Reference Number for a project.
Updates Client Reference Number for 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
StringDTO body = new StringDTO(); // StringDTO | Updated Client Reference Number for a project.
String projectId = "projectId_example"; // String | project's internal identifier
try {
apiInstance.updateClientReferenceNumber(body, projectId);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#updateClientReferenceNumber");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | StringDTO | Updated Client Reference Number for a project. | |
projectId | String | project's internal identifier |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
SmartContactsDTO updateContacts(body, projectId)
Updates Client Contacts for a project.
Updates Client Contacts for 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
SmartContactsDTO body = new SmartContactsDTO(); // SmartContactsDTO | Updated Client Contacts for a project.
String projectId = "projectId_example"; // String | project's internal identifier
try {
SmartContactsDTO result = apiInstance.updateContacts(body, projectId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#updateContacts");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | SmartContactsDTO | Updated Client Contacts for a project. | |
projectId | String | project's internal identifier |
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
updateCustomField(body, projectId, key)
Updates a custom field with a specified key in a project
Updates a custom field with a specified key 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
SmartCustomFieldDTO body = new SmartCustomFieldDTO(); // SmartCustomFieldDTO | Updated custom field with a specified key in a project.
String projectId = "projectId_example"; // String | project's internal identifier
String key = "key_example"; // String | custom field's key
try {
apiInstance.updateCustomField(body, projectId, key);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#updateCustomField");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | SmartCustomFieldDTO | Updated custom field with a specified key in a project. | |
projectId | String | project's internal identifier | |
key | String | custom field's key |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
updateInternalNotes(body, projectId)
Updates Internal Notes for a project.
Updates Internal Notes for 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
StringDTO body = new StringDTO(); // StringDTO | Updated Internal Notes for a project.
String projectId = "projectId_example"; // String | project's internal identifier
try {
apiInstance.updateInternalNotes(body, projectId);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#updateInternalNotes");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | StringDTO | Updated Internal Notes for a project. | |
projectId | String | project's internal identifier |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
updateOrderedOn(body, projectId)
Updates Order Date for a project.
Updates Order Date for 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
TimeDTO body = new TimeDTO(); // TimeDTO | Updated Order Date for a project.
String projectId = "projectId_example"; // String | project's internal identifier
try {
apiInstance.updateOrderedOn(body, projectId);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#updateOrderedOn");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | TimeDTO | Updated Order Date for a project. | |
projectId | String | project's internal identifier |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
PayableDTO updatePayable(body, projectId, payableId)
Updates a payable.
Updates a payable.
// 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
PayableDTO body = new PayableDTO(); // PayableDTO |
String projectId = "projectId_example"; // String | project's internal identifier
Long payableId = 789L; // Long | payable's internal identifier
try {
PayableDTO result = apiInstance.updatePayable(body, projectId, payableId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#updatePayable");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | PayableDTO | ||
projectId | String | project's internal identifier | |
payableId | Long | payable's internal identifier |
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
ReceivableDTO updateReceivable(body, projectId, receivableId)
Updates a receivable.
Updates a receivable.
// 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
ReceivableDTO body = new ReceivableDTO(); // ReceivableDTO |
String projectId = "projectId_example"; // String | project's internal identifier
Long receivableId = 789L; // Long | receivable's internal identifier
try {
ReceivableDTO result = apiInstance.updateReceivable(body, projectId, receivableId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#updateReceivable");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | ReceivableDTO | ||
projectId | String | project's internal identifier | |
receivableId | Long | receivable's internal identifier |
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
updateSourceLanguage(body, projectId)
Updates source language for a project.
Updates source language for 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
SourceLanguageDTO body = new SourceLanguageDTO(); // SourceLanguageDTO | Updated source language for a project.
String projectId = "projectId_example"; // String | project's internal identifier
try {
apiInstance.updateSourceLanguage(body, projectId);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#updateSourceLanguage");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | SourceLanguageDTO | Updated source language for a project. | |
projectId | String | project's internal identifier |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
updateSpecialization(body, projectId)
Updates specialization for a project.
Updates specialization for 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
SpecializationDTO body = new SpecializationDTO(); // SpecializationDTO | Updated specialization for a project.
String projectId = "projectId_example"; // String | project's internal identifier
try {
apiInstance.updateSpecialization(body, projectId);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#updateSpecialization");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | SpecializationDTO | Updated specialization for a project. | |
projectId | String | project's internal identifier |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
updateTargetLanguages(body, projectId)
Updates target languages for a project.
Updates target languages for 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
TargetLanguagesDTO body = new TargetLanguagesDTO(); // TargetLanguagesDTO | Updated target languages for a project.
String projectId = "projectId_example"; // String | project's internal identifier
try {
apiInstance.updateTargetLanguages(body, projectId);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#updateTargetLanguages");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | TargetLanguagesDTO | Updated target languages for a project. | |
projectId | String | project's internal identifier |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
updateVendorInstructions(body, projectId)
Updates instructions for all vendors performing the jobs in a project.
Updates instructions for all vendors performing the jobs in a project. See also "PUT /jobs/{jobId}/instructions" for updating instructions for a specific job 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
StringDTO body = new StringDTO(); // StringDTO | Updated instructions for all vendors performing the jobs in a project.
String projectId = "projectId_example"; // String | project's internal identifier
try {
apiInstance.updateVendorInstructions(body, projectId);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#updateVendorInstructions");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | StringDTO | Updated instructions for all vendors performing the jobs in a project. | |
projectId | String | project's internal identifier |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
updateVolume(body, projectId)
Updates volume for a project.
Updates volume for 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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
BigDecimalDTO body = new BigDecimalDTO(); // BigDecimalDTO | Updated volume for a project.
String projectId = "projectId_example"; // String | project's internal identifier
try {
apiInstance.updateVolume(body, projectId);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#updateVolume");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | BigDecimalDTO | Updated volume for a project. | |
projectId | String | project's internal identifier |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
FileDto uploadFile2(file, fileName, projectId)
Uploads file to the project as a file uploaded by PM.
Uploads file to the project as a file uploaded by PM. 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 /v2/projects/{projectId}/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.ProjectsSmartV2Api;
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");
ProjectsSmartV2Api apiInstance = new ProjectsSmartV2Api();
File file = new File("file_example"); // File |
String fileName = "fileName_example"; // String |
String projectId = "projectId_example"; // String | project's internal identifier
try {
FileDto result = apiInstance.uploadFile2(file, fileName, projectId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectsSmartV2Api#uploadFile2");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
file | File | ||
fileName | String | ||
projectId | String | project's internal identifier |
- Content-Type: multipart/form-data
- Accept: application/json;charset=UTF-8