POST api/Planning/Dependency/Create

Request Information

URI Parameters

None.

Body Parameters

PlanningDependency
NameDescriptionTypeAdditional information
ProjectId

integer

None.

ProjectType

integer

None.

FromItemId

integer

None.

FromItemType

integer

None.

FromId

string

None.

ToItemId

integer

None.

ToItemType

integer

None.

ToId

string

None.

Id

string

None.

Type

integer

None.

Lag

integer

None.

IsWorkItem

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ProjectId": 1,
  "ProjectType": 2,
  "FromItemId": 3,
  "FromItemType": 4,
  "FromId": "1(2)-3(4)",
  "ToItemId": 5,
  "ToItemType": 6,
  "ToId": "1(2)-5(6)",
  "Id": "[1(2)-3(4)]->[1(2)-5(6)]",
  "Type": 7,
  "Lag": 8,
  "IsWorkItem": true
}

application/xml, text/xml

Sample:
<PlanningDependency xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Planning">
  <FromItemId>3</FromItemId>
  <FromItemType>4</FromItemType>
  <Lag>8</Lag>
  <ProjectId>1</ProjectId>
  <ProjectType>2</ProjectType>
  <ToItemId>5</ToItemId>
  <ToItemType>6</ToItemType>
  <Type>7</Type>
</PlanningDependency>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

API_Data_ListOfPlanningItemTime
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

Collection of PlanningItemTime

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": [
    {
      "Start": "2024-12-21 17:21:58",
      "End": "2024-12-21 17:21:58",
      "IsMoving": true,
      "ProjectId": 2,
      "ProjectType": 3,
      "ItemId": 4,
      "ItemType": 5,
      "Id": "2(3)-4(5)",
      "IsWorkItem": true
    },
    {
      "Start": "2024-12-21 17:21:58",
      "End": "2024-12-21 17:21:58",
      "IsMoving": true,
      "ProjectId": 2,
      "ProjectType": 3,
      "ItemId": 4,
      "ItemType": 5,
      "Id": "2(3)-4(5)",
      "IsWorkItem": true
    }
  ]
}

application/xml, text/xml

Sample:
<API_Data_ArrayOfPlanningItemTime xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Planning">
    <d2p1:PlanningItemTime>
      <d2p1:ItemId>4</d2p1:ItemId>
      <d2p1:ItemType>5</d2p1:ItemType>
      <d2p1:ProjectId>2</d2p1:ProjectId>
      <d2p1:ProjectType>3</d2p1:ProjectType>
      <d2p1:End>2024-12-21T17:21:58.3365204-08:00</d2p1:End>
      <d2p1:IsMoving>true</d2p1:IsMoving>
      <d2p1:Start>2024-12-21T17:21:58.3365204-08:00</d2p1:Start>
    </d2p1:PlanningItemTime>
    <d2p1:PlanningItemTime>
      <d2p1:ItemId>4</d2p1:ItemId>
      <d2p1:ItemType>5</d2p1:ItemType>
      <d2p1:ProjectId>2</d2p1:ProjectId>
      <d2p1:ProjectType>3</d2p1:ProjectType>
      <d2p1:End>2024-12-21T17:21:58.3365204-08:00</d2p1:End>
      <d2p1:IsMoving>true</d2p1:IsMoving>
      <d2p1:Start>2024-12-21T17:21:58.3365204-08:00</d2p1:Start>
    </d2p1:PlanningItemTime>
  </Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_ArrayOfPlanningItemTime>