SetResponsible

[POST] .../v1/project/setresponsible

Assigns a new responsible user for a project Use this method when project ownership should move to another responsible user without changing the rest of the project data. The method updates responsible_user_id for the selected project, sends the usual project update side effects from the persistent layer and returns UpdateResult. The request body must contain id and responsible_user_id, the caller needs project edit permission and missing body, invalid ids, denied access, database failures or persistent errors are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
id Int64 Required Project ID.
responsible_user_id Int64 Required New responsible user ID.

Request Example

{
  "id": 10,
  "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
  }
}