POST api/Event/Update
Update an existing event
Request Information
URI Parameters
None.
Body Parameters
EventModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ProjectId | integer |
None. |
|
| ParentTaskId | integer |
None. |
|
| EventId | integer |
None. |
|
| TemplateId | integer |
None. |
|
| Title | string |
None. |
|
| StartDate | date |
None. |
|
| FinishDate | date |
None. |
|
| CrntOwnerId | integer |
None. |
|
| OwnerName | string |
None. |
|
| StatusId | integer |
None. |
|
| StatusName | string |
None. |
|
| DateCreated | date |
None. |
|
| CreatedById | integer |
None. |
|
| CreatedBy | string |
None. |
|
| AttachmentId | integer |
None. |
|
| AttachmentVersion | integer |
None. |
|
| AttachmentName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ProjectId": 1,
"ParentTaskId": 2,
"EventId": 3,
"TemplateId": 1,
"Title": "sample string 4",
"StartDate": "2025-12-09 04:12:59",
"FinishDate": "2025-12-09 04:12:59",
"CrntOwnerId": 1,
"OwnerName": "sample string 5",
"StatusId": 1,
"StatusName": "sample string 6",
"DateCreated": "2025-12-09 04:12:59",
"CreatedById": 1,
"CreatedBy": "sample string 7",
"AttachmentId": 1,
"AttachmentVersion": 1,
"AttachmentName": "sample string 8"
}
application/xml, text/xml
Sample:
<EventModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Entities"> <AttachmentId>1</AttachmentId> <AttachmentName>sample string 8</AttachmentName> <AttachmentVersion>1</AttachmentVersion> <CreatedBy>sample string 7</CreatedBy> <CreatedById>1</CreatedById> <CrntOwnerId>1</CrntOwnerId> <DateCreated>2025-12-09T08:12:59.8801817-08:00</DateCreated> <EventId>3</EventId> <FinishDate>2025-12-09T08:12:59.8801817-08:00</FinishDate> <OwnerName>sample string 5</OwnerName> <ParentTaskId>2</ParentTaskId> <ProjectId>1</ProjectId> <StartDate>2025-12-09T08:12:59.8801817-08:00</StartDate> <StatusId>1</StatusId> <StatusName>sample string 6</StatusName> <TemplateId>1</TemplateId> <Title>sample string 4</Title> </EventModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Update an existing event
ApiReturn| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Error | ErrorInfo |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Error": {
"ErrorCode": 1,
"ErrorMessage": "sample string 1"
}
}
application/xml, text/xml
Sample:
<ApiReturn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
<Error>
<ErrorCode>1</ErrorCode>
<ErrorMessage>sample string 1</ErrorMessage>
</Error>
<Success>true</Success>
</ApiReturn>