PUT api/tasks/{id}
Update a task
Request Information
Authentication
This method requires user authentication
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
(Required)This is the TaskDetailId(not TaskId) |
integer |
Required |
Body Parameters
Task object must contain the TaskId with the right value, it cannot be 0 or a negative number
Task| Name | Description | Type | Additional information |
|---|---|---|---|
| TaskId |
TaskId is the one that is shown to the user as a reference, but the real Id is the TaskDetailId |
integer |
None. |
| TaskDetailId |
TaskDetailId is the main id of the task, the one that identifies it, is important to provide it inside the object when performing an update. Please remember to use TaskDetailId and not TaskId in the following routes: * GET api/tasks/{Id} * DELETE api/tasks/{Id} * PUT api/tasks/{Id} |
integer |
None. |
| PropertyId |
Property Id. See the GET api/properties/{propertyId} route to get the property data. |
integer |
None. |
| SourceId |
Source Id. See the GET api/tasksources/{id} routes for the task sources. |
integer |
None. |
| CategoryId |
Category Id. See the GET api/taskcategories/{id} routes for the task categories. |
integer |
None. |
| ResponsiblePartyId |
Responsible Party Id. See the GET api/taskresponsibilityparties/{id} routes for the task responsible parties. |
integer |
None. |
| TaskTypeId |
Task Type Id. See the GET api/tasktypes/{id} routes for the task types. |
integer |
None. |
| AssignUserId |
Assign User Id. See the GET api/users/{id} route for the user data. |
integer |
None. |
| ModuleStatusId |
Status Id. See the GET api/modulestatuses/archmods route to get a list of arch mod statuses. |
integer |
None. |
| ModuleProgressCodeId |
Module Progress Code Id. See the GET api/moduleprogresscodes/{id} route to get the module progress code data. |
integer |
None. |
| AssignUtypeId |
Assign User Type Id. See the GET api/usertypes/{id} route for the user type data. |
integer |
None. |
| StartDate |
Start Date. |
date |
None. |
| DueDate |
Due Date. |
date |
None. |
| CompletionDate |
Completion Date. |
date |
None. |
| TaskName |
Task Name. |
string |
None. |
| AccountingCode |
Accounting Code. |
string |
None. |
| RequestedByContactInfo |
Requested by Contact Info. |
string |
None. |
| SourceInfo |
Source Info. |
string |
None. |
Request Formats
application/json, text/json
{
"TaskId": 1,
"TaskDetailId": 2,
"PropertyId": 1,
"SourceId": 1,
"CategoryId": 1,
"ResponsiblePartyId": 1,
"TaskTypeId": 1,
"AssignUserId": 1,
"ModuleStatusId": 1,
"ModuleProgressCodeId": 1,
"AssignUtypeId": 1,
"StartDate": "2025-12-24T05:22:35.2945679-05:00",
"DueDate": "2025-12-24T05:22:35.2945679-05:00",
"CompletionDate": "2025-12-24T05:22:35.2945679-05:00",
"TaskName": "sample string 3",
"AccountingCode": "sample string 4",
"RequestedByContactInfo": "sample string 5",
"SourceInfo": "sample string 6"
}
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
This method has no specific response - It returns an empty success response if it completes without error.
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample not available.
Internal Error Codes
-
106: ResourceNotFound
(The requested resource was not found., NotFound) -
100: MissingRequiredHeader
(Invalid request format. A required HTTP header was not specified., BadRequest) -
118: InvalidHeaderValue
(The value provided for one of the HTTP headers was not in the correct format., BadRequest) -
199: UnknownError
(Internal server error., InternalServerError) -
105: ResourceNotLinkedToUser
(User is trying to access a resource that belongs to a property not linked to the user., Forbidden) -
112: InvalidOperation
(The operation is not valid., Conflict) -
113: WriteOperationFailed
(The requested operation failed., Conflict) -
109: MissingRequiredJsonParameter
(Invalid request format. A required parameter in the request body was not specified for this request., BadRequest) -
114: InvalidJsonParameterValue
(Invalid request format. The value provided for one of the parameters in the request body was not in the correct format., BadRequest)