- URL:
- https://<root>/<serviceName>/TopographicProductionServer/workflows/projects/updateProject
- Methods:
GETPOST- Required Capability:
- Requires a Professional or Professional Plus user type account and a Topographic Mapping server extension license.
- Version Introduced:
- 12.0
Description
The update operation updates the properties of a project.
Request parameters
| Parameter | Details |
|---|---|
| The ID associated with the project to update. |
| The JSON object that defines the properties of a project including phases. Syntax: Example: |
| Enables the A value of A value of Values: |
| The response format. The default format is |
JSON Response syntax
The following is the syntax of a response:
{
"project": "<Name of the project>",
"success": <true | false>
}Example usage
Update the properties of a project on the topographic production server using the update operation.
Request URL and parameters:
https://organization.example.com/<context>/rest/services/<SampleService>/TopographicProductionServer/workflows/projects/updateProjectprojectId=61EAB79B-6FC0-433A-9954-FDD619D0CCEE
project={
name: "Weapon X",
description: "Confidential",
startDate: "1882-01-01T00:00:00Z",
endDate: "2023-01-01T00:00:00Z",
phases: [
{
updateType: "modify",
phaseId: "6BDFB0E4-2B21-40D0-B7E4-18328863B88F",
name: "James Howlett",
description: "Discovery phase",
startDate: "1882-01-01T00:00:00Z",
endDate: "1900-01-01T00:00:00Z"
},
{
updateType: "modify",
phaseId: "2C443857-E035-4994-A644-F12537BE00C8",
name: "Logan",
description: "Development",
startDate: "1900-01-01T00:00:00Z",
endDate: "1941-01-01T00:00:00Z"
},
{
updateType: "modify",
phaseId: "9E3A032F-6733-472B-8836-4922FC8D5F06",
name: "Wolverine",
description: "Fruition",
startDate: "1941-01-01T00:00:00Z",
endDate: "2023-01-01T00:00:00Z"
}
]
},
force=false,
f=jsonJSON Response example
The following is an example of a successful response to update a project that did not have any jobs running:
{
"project": "Weapon X",
"success": true
}