Assign or remove one or more Areas (tier 3 of the LBS) documents.
Supported HTTPS Methods: GET, PUT, PATCH, POST
Request URL:
<HOSTNAME>/sc/datalake/v1/Instances(2)/DocumentAreas
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,
"PhysicalLocationId": 416,
"dtRemoved": "2023-07-14T16:09:13-06:00"
}
Request payload parameters:
|
|
Required, Optional, |
|
---|---|---|---|
DocumentID |
Integer |
Required |
Smart Completions ID for the document. |
PhysicalLocationId |
Integer |
Required |
Smart Completions ID for the area (tier 3 of the Location Breakdown Structure) to add or remove from the document. |
dtRemoved |
String (Date) |
Get - Optional Put - Optional Patch - Optional Post - Unused |
Date on which the area was removed from the document. |
Sample response:
{
"@odata.context": "https:// localhost:5001/DataLake/v1/
$metadata#Instances(2)/ DocumentAreas /$entity",
"Id": 188,
"TypeId": 3,
"DocumentId": 37786,
"PhysicalLocationId": 416,
"Document": "_CE_SMART FORM (STP02)",
"PhysicalLocation": "Area 1",
"RecordCreated": "2023-11-13T12:46:55Z",
"RecordCreatedBy": "Sai Sai",
"RecordCreatedById": 1039,
"RecordLastModified": null,
"RecordLastModifiedBy": "Sai Sai",
"RecordLastModifiedById": 1039,
"dtRemoved": null,
"RecordRemovedBy": null,
"RecordRemovedById": null,
"CompanyInstanceId": 2
}
Response parameters:
Response Parameter |
Data Type |
Description |
---|---|---|
@odata.context |
String |
Request URL. |
Id |
Integer |
Smart Completions ID assigned to the area upon linking to the document. |
TypeId |
Integer |
Smart Completions ID for the area type (tier 3 of the Location Breakdown Structure) to add or remove from the document. |
DocumentID |
Integer |
Smart Completions ID of the document. |
PhysicalLocationId |
Integer |
Smart Completions ID for the area (tier 3 of the Location Breakdown Structure) to add or remove from the document. |
Document |
String |
Name of the document. |
PhysicalLocation |
String |
Smart Completions name for the area (tier 3 of the Location Breakdown Structure) to add or remove from the document. |
RecordCreated |
String (Date) |
Read only. Date when the area 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 area to the document in Smart Completions. Captured by Smart Completions. |
RecordCreatedById |
Integer |
Read only. Smart Completions ID for the user who assigned the area to the document in Smart Completions. Captured by Smart Completions. |
RecordLastModified |
String (Date) |
Read only. Date when the area 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 area 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 area 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 area 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 area assignment from to document in Smart Completions. Captured by Smart Completions. |
RecordRemovedById |
Integer |
Read only. Smart Completions ID for the user who removed the area assignment from the document in Smart Completions. Captured by Smart Completions. |
CompanyInstanceId |
Integer |
Smart Completions ID for the Instance that contains the Project. |