It allows you:
to get the Project SubPhases of chosen Project Phase
to create the Project SubPhases of chosen Project Phase
to update the Project SubPhases of chosen Project Phase
to delete the Project SubPhases of chosen Project Phase
Columns that can be used as filters:
Project (project name is mandatory)
Phase (phase name is mandatory)
Actions can be done:
list
create
update
delete
Red columns can be set or updated but they may get overwritten by the project context
URL: https://api.socratecloud.com/webapi/rest/project/phase/sub_phase/list/{version}?startRow={0}&endRow={100}&accessToken={access_token}&Project={project_name}&ProjectValue={project_value}&Project_ID={c_project_id}&PhaseLineNo={phase_seq_no}&Phase_ID={c_project_phase_id}&Phase={phase_name}
Method: GET
Return: JSON object with next format:
{
"data": [
{
"Organization": "Demo SRL",
"OrganizationValue": "Demo",
"Created": "2014-09-04 16:03:50+0300",
"CreatedBy": "SuperUser",
"Updated": "2014-09-04 16:03:50+0300",
"UpdatedBy": "SuperUser",
"Active": true,
"Name": "Initiation",
"Sequence": 10,
"StartDate": "2016-01-01 00:00:00+0200",
"EndDate": "2017-04-20 00:00:00+0300"
},
{
"Organization": "Demo SRL",
"OrganizationValue": "Demo",
"Created": "2014-09-04 16:04:04+0300",
"CreatedBy": "SuperUser",
"Updated": "2014-09-04 16:04:04+0300",
"UpdatedBy": "SuperUser",
"Active": true,
"Name": "Implementation",
"Sequence": 20,
"StartDate": "2016-01-01 00:00:00+0200",
"EndDate": "2017-04-20 00:00:00+0300"
},
{
"Organization": "Demo SRL",
"OrganizationValue": "Demo",
"Created": "2014-09-04 16:04:14+0300",
"CreatedBy": "SuperUser",
"Updated": "2014-09-04 16:04:14+0300",
"UpdatedBy": "SuperUser",
"Active": true,
"Name": "Invoicing",
"Sequence": 30,
"StartDate": "2016-01-01 00:00:00+0200",
"EndDate": "2017-04-20 00:00:00+0300"
}
],
"totalRows": 3
}
URL: https://api.socratecloud.com/webapi/rest/project/phase/sub_phase/list_full/{version}?startRow={0}&endRow={100}&accessToken={access_token}&Project={project_name}&ProjectValue={project_value}&Project_ID={c_project_id}&PhaseLineNo={phase_seq_no}&Phase_ID={c_project_phase_id}&Phase={phase_name}
Method: GET
Return: JSON object with next format:
{
"data": [
{
"Organization": "RAMPAD CONSTRUCT SRL",
"OrganizationValue": "RAMPAD CONSTRUCT SRL",
"Created": "2016-01-26 14:16:31+0200",
"CreatedBy": "AdminTitular",
"Updated": "2016-04-11 09:20:07+0300",
"UpdatedBy": "Robert Hindli",
"Active": true,
"Name": "Indepartare strat vegetal",
"Sequence": 10,
"PlannedQty": 0,
"PlannedAmt": 29,
"CommittedQty": 3,
"CommittedAmt": 30,
"Description": null,
"StartDate": null,
"EndDate": null,
"projectLines": [
{
"Organization": "RAMPAD CONSTRUCT SRL",
"OrganizationValue": "RAMPAD CONSTRUCT SRL",
"Created": "2016-01-26 14:19:22+0200",
"CreatedBy": "AdminTitular",
"Updated": "2016-01-26 14:19:22+0200",
"UpdatedBy": "AdminTitular",
"Line": 20,
"Active": true,
"DateTrx": null,
"ProductCategory": "Materiale auxiliare Rampad",
"Product": null,
"ProductName": null,
"ListPrice": null,
"Discount": 0,
"PlannedPrice": 5,
"Description": null,
"PlannedDate": null,
"PlannedQty": 1,
"PlannedAmt": 5,
"Activity": null
},
{
"Organization": "RAMPAD CONSTRUCT SRL",
"OrganizationValue": "RAMPAD CONSTRUCT SRL",
"Created": "2016-01-26 14:18:16+0200",
"CreatedBy": "AdminTitular",
"Updated": "2016-01-26 14:18:16+0200",
"UpdatedBy": "AdminTitular",
"Line": 10,
"Active": true,
"DateTrx": "2016-01-27 00:00:00+0200",
"ProductCategory": "Materii Prime Rampad",
"Product": null,
"ProductName": null,
"ListPrice": null,
"Discount": 0,
"PlannedPrice": 10,
"Description": null,
"PlannedDate": null,
"PlannedQty": 1,
"PlannedAmt": 10,
"Activity": null
},
{
"Organization": "RAMPAD CONSTRUCT SRL",
"OrganizationValue": "RAMPAD CONSTRUCT SRL",
"Created": "2016-01-26 14:25:45+0200",
"CreatedBy": "AdminTitular",
"Updated": "2016-01-26 14:25:45+0200",
"UpdatedBy": "AdminTitular",
"Line": 30,
"Active": true,
"DateTrx": null,
"ProductCategory": "R_Materiale Categorie",
"Product": null,
"ProductName": null,
"ListPrice": null,
"Discount": 0,
"PlannedPrice": 14,
"Description": null,
"PlannedDate": null,
"PlannedQty": 1,
"PlannedAmt": 14,
"Activity": null
}
],
"activities":[
{
"Activity_ID": 1000122,
"Name": Dulgherie
}
]
}
],
"totalRows": 2
}
Create:
URL: https://api.socratecloud.com/webapi/rest/project/phase/sub_phase/create/{version}?accessToken={access_token}&ProjectValue={project_value}&Project_ID={c_project_id}&Phase_ID={c_project_phase_id}&PhaseLineNo={project_phase_seq_no}
Method: POST
Return: sub phase name and id for success or error message (start with "ERROR: ")
{
"Name": "sub_phase_name",
"StartDate" : "2019-11-03 00:00:00+0300",
"EndDate" : "2019-11-03 00:00:00+0300",
"IsComplete" : "false",
"Description" : "test",
"PlannedQty" : 10,
"CommittedQty" : 10,
"CommittedAmt" : 10,
"PlannedAmt" : 10
}
Update:
URL: https://api.socratecloud.com/webapi/rest/project/phase/sub_phase/update/{version}?accessToken={access_token}&ProjectValue={project_value}&Project_ID={c_project_id}&Phase_ID= {c_project_phase_id}&PhaseLineNo={project_phase_seq_no}&SubPhaseLineNo={sub_phase_seq_no}&SubPhase_ID={sub_phase_id}
Method: POST
Return: sub phase name and id for success or error message (start with "ERROR: ")
{
"Name": "sub_phase_name",
"StartDate" : "2019-11-03 00:00:00+0300",
"EndDate" : "2019-11-03 00:00:00+0300",
"IsComplete" : "false",
"Description" : "test",
"PlannedQty" : 10,
"CommittedQty" : 10,
"CommittedAmt" : 10,
"PlannedAmt" : 10
}
Delete:
URL: https://api.socratecloud.com/webapi/rest/project/phase/sub_phase/delete/{version}?accessToken={access_token}&ProjectValue={project_value}&Project_ID={c_project_id}&Phase_ID={c_project_phase_id}&PhaseLineNo={project_phase_seq_no}&SubPhaseLineNo={sub_phase_seq_no}&SubPhase_ID={sub_phase_id}
Method: POST
Return: "Deleted" or error