| All Verbs | /Forum/ThreadAdd |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Token | query | string | No | |
| UserId | query | int | No | |
| WorkerId | query | int | No | |
| Subject | query | string | No | |
| Description | query | string | No | |
| Description1 | query | string | No | |
| PostContent | query | string | No | |
| CategoryUID | query | int | No | |
| Anonymous | query | bool | No | |
| ForumType | query | int | No | |
| Attachments | query | ForumAttachment[] | No | |
| ReturnCategoryId | query | int | No | |
| ReturnEventId | query | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| FileName | form | string | No | |
| base64Content | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Data | form | ForumThreadDtoAll[] | No | |
| Error | form | bool | No | |
| ErrorMessage | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CreatedUser | form | string | No | |
| CreatedUserFullName | form | string | No | |
| ModifiedUser | form | string | No | |
| Subject | form | string | No | |
| Description | form | string | No | |
| Description1 | form | string | No | |
| Closed | form | bool | No | |
| Deleted | form | bool | No | |
| RatingCount | form | int | No | |
| Rating | form | decimal | No | |
| CategoryUID | form | int | No | |
| PostCount | form | int | No | |
| Anonymous | form | bool | No | |
| LastPostTime | form | DateTime | No | |
| OrderId | form | int | No | |
| EventId | form | int | No | |
| ForumType | form | ForumType | No | |
| Readed | form | bool | No | |
| MainPost | form | ForumPostItem | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| RecChanged | form | DateTime | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| UID | form | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| UID | form | int | No | |
| CreatedUser | form | string | No | |
| CreatedUserFullName | form | string | No | |
| RecCreated | form | DateTime | No | |
| Content | form | string | No | |
| Useful | form | int | No | |
| Deleted | form | bool | No | |
| Anonymous | form | bool | No | |
| Readed | form | bool | No | |
| Attachments | form | ForumAttachment[] | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsv/reply/ForumThreadAdd HTTP/1.1
Host: data.oriem.cz
Content-Type: text/jsv
Content-Length: length
{
Token: String,
UserId: 0,
WorkerId: 0,
Subject: String,
Description: String,
Description1: String,
PostContent: String,
CategoryUID: 0,
Anonymous: False,
ForumType: 0,
Attachments:
[
{
FileName: String,
base64Content: String
}
],
ReturnCategoryId: 0,
ReturnEventId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Data:
[
{
CreatedUser: String,
CreatedUserFullName: String,
ModifiedUser: String,
Subject: String,
Description: String,
Description1: String,
Closed: False,
Deleted: False,
RatingCount: 0,
Rating: 0,
CategoryUID: 0,
PostCount: 0,
Anonymous: False,
LastPostTime: 0001-01-01,
OrderId: 0,
EventId: 0,
ForumType: Standard,
Readed: False,
MainPost:
{
UID: 0,
CreatedUser: String,
CreatedUserFullName: String,
RecCreated: 0001-01-01,
Content: String,
Useful: 0,
Deleted: False,
Anonymous: False,
Readed: False,
Attachments:
[
{
FileName: String,
base64Content: String
}
]
},
RecChanged: 0001-01-01,
UID: 0
}
],
Error: False,
ErrorMessage: String
}