POST api/notes/addNote
Request Information
URI Parameters
None.
Body Parameters
NotePostViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Body | string |
Required |
|
| Title | string |
None. |
|
| CategoryId | integer |
None. |
|
| AccessLevelId | integer |
None. |
|
| ExceptionId | integer |
None. |
|
| IsHot | boolean |
None. |
|
| ContainersIds | Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Body": "sample string 1",
"Title": "sample string 2",
"CategoryId": 1,
"AccessLevelId": 1,
"ExceptionId": 1,
"IsHot": true,
"ContainersIds": [
1,
2
]
}
application/xml, text/xml
Sample:
<NotePostViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eMpowerCore.ViewModels.Notes">
<AccessLevelId>1</AccessLevelId>
<Body>sample string 1</Body>
<CategoryId>1</CategoryId>
<ContainersIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>1</d2p1:int>
<d2p1:int>2</d2p1:int>
</ContainersIds>
<ExceptionId>1</ExceptionId>
<IsHot>true</IsHot>
<Title>sample string 2</Title>
</NotePostViewModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.