Assign or remove one or more Projects (tier 1 of the WBS) from documents.
Supported HTTPS Methods: GET, PUT, PATCH, POST
Request URL:
<HOSTNAME>/sc/datalake/v1/Instances(2)/DocumentProjects
Header parameters:
Header Parameter |
Description |
---|---|
Authorization |
A token required for authenticating a request. The bearer token is a string, usually generated by the server in response to a login request. You must include this header in every request. |
Content-Type |
The request format or the original media type of the resource. |
Sample request payload:
{
"DocumentID": 37786,
"WorkBreakdownIdUp3Id": 294,
"dtRemoved": "2023-07-14T16:09:13-06:00"
}
Request payload parameters:
|
|
Required, Optional, |
|
---|---|---|---|
DocumentID |
Integer |
Required |
Smart Completions ID for the document. |
WorkBreakdownIdUp3Id |
Integer |
Required |
Smart Completions ID for the Project (tier 1 of the WBS) to add or remove from the document. |
dtRemoved |
String (Date) |
Get - Optional Put - Optional Patch - Optional Post - Unused |
Date on which the project was removed from the document. |
Sample response:
{
"@odata.context": "https://localhost:5001/DataLake/v1/$metadata#Instances(2)/
Projects(294)/DocumentProjects/$entity",
"Id": 33330,
"DocumentID": 37786,
"WorkBreakdownUp3Id": 294,
"Document": "_CE_SMART FORM (STP02)",
"Project": "STP01 - SONIC TEST PROJECT",
"Summary": "STP01 - SONIC TEST PROJECT",
"RecordCreated": "2023-11-13T11:30:43.777Z",
"RecordCreatedBy": "Sai Sai",
"RecordCreatedById": 1039,
"RecordLastModified": null,
"RecordLastModifiedBy": null,
"RecordLastModifiedById": null,
"dtRemoved": null,
"RecordRemovedBy": null,
"RecordRemovedById": null,
"CompanyInstanceId": 2
}
Response parameters:
|
|
|
---|---|---|
@odata.context |
String |
Request URL. |
Id |
Integer |
Smart Completions ID assigned to the project upon linking to the document. |
DocumentID |
Integer |
ID of the document. |
WorkBreakdownUp3Id |
Integer |
Smart Completions ID for the Project (tier 1 of the Work Breakdown Structure) to add or remove from the document. |
Document |
String |
Name of the document. |
Project |
String |
Smart Completions name for the project that has been assigned to the document. |
Summary |
String |
Smart Completions description of the project that has been assigned to the document. |
RecordCreated |
String (Date) |
Read only. Date when the project was assigned to the document in Smart Completions. Captured by Smart Completions. |
RecordCreatedBy |
String |
Read only. Smart Completions name for the user who assigned the project to the document in Smart Completions. Captured by Smart Completions. |
RecordCreatedById |
Integer |
Read only. Smart Completions ID for the user who assigned the project to the document in Smart Completions. Captured by Smart Completions. |
RecordLastModified |
String (Date) |
Read only. Date when the project assignment to the document was last updated in Smart Completions. Captured by Smart Completions. If the assignment has not been updated since creation, this is the date the assignment was created. |
RecordLastModifiedBy |
String |
Read only. Smart Completions name for the user who last updated the project assignment to the document in Smart Completions. Captured by Smart Completions. If the assignment has not been updated since creation, this is the user who created the assignment. |
RecordLastModifiedById |
Integer |
Read only. Smart Completions ID for the user who last updated the project assignment to the document in Smart Completions. Captured by Smart Completions. If the assignment has not been updated since creation, this is the user who created the assignment. |
dtRemoved |
String (Date) |
Read only. Date when the project assignment was removed from the document in Smart Completions. Captured by Smart Completions. |
RecordRemovedBy |
String |
Read only. Smart Completions name for the user who removed the project assignment to the document in Smart Completions. Captured by Smart Completions. |
RecordRemovedById |
Integer |
Read only. Smart Completions ID for the user who removed the project assignment to the document in Smart Completions. Captured by Smart Completions. |
CompanyInstanceId |
Integer |
Smart Completions ID for the Instance that contains the Project. |