POST api/Projects
Request Information
URI Parameters
None.
Body Parameters
ProjectDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| id | string |
None. |
|
| name | string |
None. |
|
| description | string |
None. |
|
| projectManagerId | integer |
None. |
|
| status | boolean |
None. |
|
| projectsProjectTypes | Collection of integer |
None. |
|
| projectsProjectCategory | Collection of integer |
None. |
|
| projectCost | decimal number |
None. |
|
| projectAreaUnit | integer |
None. |
|
| projectAreaQuantity | decimal number |
None. |
|
| projectPlotAreaUnit | integer |
None. |
|
| projectPlotAreaQuantity | decimal number |
None. |
|
| projectCapacityUnit | integer |
None. |
|
| projectCapacityQuantity | decimal number |
None. |
|
| projectSector | Collection of integer |
None. |
|
| moefcc | integer |
None. |
|
| funding | integer |
None. |
|
| clientId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": "sample string 1",
"name": "sample string 2",
"description": "sample string 3",
"projectManagerId": 4,
"status": true,
"projectsProjectTypes": [
1,
2
],
"projectsProjectCategory": [
1,
2
],
"projectCost": 6.0,
"projectAreaUnit": 7,
"projectAreaQuantity": 8.0,
"projectPlotAreaUnit": 9,
"projectPlotAreaQuantity": 10.0,
"projectCapacityUnit": 11,
"projectCapacityQuantity": 12.0,
"projectSector": [
1,
2
],
"moefcc": 13,
"funding": 14,
"clientId": 15
}
application/xml, text/xml
Sample:
<ProjectDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TamMobileMeterWebAPI.Models">
<clientId>15</clientId>
<description>sample string 3</description>
<funding>14</funding>
<id>sample string 1</id>
<moefcc>13</moefcc>
<name>sample string 2</name>
<projectAreaQuantity>8</projectAreaQuantity>
<projectAreaUnit>7</projectAreaUnit>
<projectCapacityQuantity>12</projectCapacityQuantity>
<projectCapacityUnit>11</projectCapacityUnit>
<projectCost>6</projectCost>
<projectManagerId>4</projectManagerId>
<projectPlotAreaQuantity>10</projectPlotAreaQuantity>
<projectPlotAreaUnit>9</projectPlotAreaUnit>
<projectSector xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</projectSector>
<projectsProjectCategory xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</projectsProjectCategory>
<projectsProjectTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</projectsProjectTypes>
<status>true</status>
</ProjectDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.