POST api/Activities
Request Information
URI Parameters
None.
Body Parameters
ActivityName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
parentID | integer |
None. |
|
description | string |
Required String length: inclusive between 0 and 150 |
|
classification | string |
String length: inclusive between 0 and 50 |
Request Formats
application/json, text/json
Sample:
{ "ID": 1, "parentID": 1, "description": "sample string 1", "classification": "sample string 2" }
application/xml, text/xml
Sample:
<Activity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NMAUtilityAPI.Entity"> <ID>1</ID> <classification>sample string 2</classification> <description>sample string 1</description> <parentID>1</parentID> </Activity>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ActivityName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
parentID | integer |
None. |
|
description | string |
Required String length: inclusive between 0 and 150 |
|
classification | string |
String length: inclusive between 0 and 50 |
Response Formats
application/json, text/json
Sample:
{ "ID": 1, "parentID": 1, "description": "sample string 1", "classification": "sample string 2" }
application/xml, text/xml
Sample:
<Activity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NMAUtilityAPI.Entity"> <ID>1</ID> <classification>sample string 2</classification> <description>sample string 1</description> <parentID>1</parentID> </Activity>