[POST] .../v1/userstock/remove
Deletes user-to-warehouse assignments. Use this destructive method to remove a user's access to a stock when that warehouse assignment should no longer be available. It requires a positive assignment id and returns row_affected for the removed user-to-stock link. The caller must have user stock remove permission; missing body, invalid id, denied access, missing assignment records and persistent storage errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Table record ID for the user-to-stock link. |
Request Example
{
"id": 31
}
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
}
}