POST api/MoodType/create
Request Information
URI Parameters
None.
Body Parameters
MoodTypeCreateDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| Emoji | string |
None. |
|
| Color | string |
None. |
|
| Level | byte |
None. |
|
| SortOrder | integer |
None. |
|
| Description | string |
None. |
|
| CreatedAt | date |
None. |
|
| UpdatedAt | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"Emoji": "sample string 2",
"Color": "sample string 3",
"Level": 64,
"SortOrder": 5,
"Description": "sample string 6",
"CreatedAt": "2025-12-06T13:01:53.5435592+08:00",
"UpdatedAt": "2025-12-06T13:01:53.5435592+08:00"
}
application/xml, text/xml
Sample:
<MoodTypeCreateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MoodTrackerApi.Models"> <Color>sample string 3</Color> <CreatedAt>2025-12-06T13:01:53.5435592+08:00</CreatedAt> <Description>sample string 6</Description> <Emoji>sample string 2</Emoji> <Level>64</Level> <Name>sample string 1</Name> <SortOrder>5</SortOrder> <UpdatedAt>2025-12-06T13:01:53.5435592+08:00</UpdatedAt> </MoodTypeCreateDto>
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.