POST api/v1/project
Create a new project
Request Information
URI Parameters
None.
Body Parameters
ProjectSimpleDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Number | integer |
None. |
|
| Title | string |
None. |
|
| ParentProjectId | integer |
None. |
|
| IsTemplate | boolean |
None. |
|
| CountryId | integer |
None. |
|
| ProjectTypeId | integer |
None. |
|
| ProjectStatusId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"number": 2,
"title": "sample string 3",
"parentProjectId": 1,
"isTemplate": true,
"countryId": 1,
"projectTypeId": 5,
"projectStatusId": 6
}
application/xml, text/xml
Sample:
<ProjectSimpleDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Workpilot.ServiceLayer.Models"> <CountryId>1</CountryId> <Id>1</Id> <IsTemplate>true</IsTemplate> <Number>2</Number> <ParentProjectId>1</ParentProjectId> <ProjectStatusId>6</ProjectStatusId> <ProjectTypeId>5</ProjectTypeId> <Title>sample string 3</Title> </ProjectSimpleDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ProjectSimpleDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Number | integer |
None. |
|
| Title | string |
None. |
|
| ParentProjectId | integer |
None. |
|
| IsTemplate | boolean |
None. |
|
| CountryId | integer |
None. |
|
| ProjectTypeId | integer |
None. |
|
| ProjectStatusId | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": 1,
"number": 2,
"title": "sample string 3",
"parentProjectId": 1,
"isTemplate": true,
"countryId": 1,
"projectTypeId": 5,
"projectStatusId": 6
}
application/xml, text/xml
Sample:
<ProjectSimpleDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Workpilot.ServiceLayer.Models"> <CountryId>1</CountryId> <Id>1</Id> <IsTemplate>true</IsTemplate> <Number>2</Number> <ParentProjectId>1</ParentProjectId> <ProjectStatusId>6</ProjectStatusId> <ProjectTypeId>5</ProjectTypeId> <Title>sample string 3</Title> </ProjectSimpleDto>