[POST] .../v1/projecttask/setresponsible
Assigns the responsible user for a task Use this method to transfer task responsibility to another user while keeping the task in the same project and status. The method updates responsible_user_id, refreshes participant-related notification state through the persistent layer, emits responsible-change side effects and returns UpdateResult. The request body must contain id and responsible_user_id, the caller needs task responsible-change permission and missing body, invalid ids, denied access, missing task, database failures or persistent errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Task ID. |
| responsible_user_id | Int64 | Required | New responsible user ID. |
Request Example
{
"id": 101,
"responsible_user_id": 18
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"row_affected": 1
}
}