[POST] .../v1/personaldoctype/edit
Edits a personal document type. Use this method to update the name or mask of an existing personal document type. The request requires id and must provide name, mask or both; empty values are ignored and no changed fields produces a business error, while the stored mask is later used by customer personal document value validation. The method checks the current request user and requires personal document type edit permission; missing body, missing id, missing type, no changed data, denied permission and storage errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Personal document type ID. |
| mask | String | Optional | Personal document type mask. |
| name | String | Optional | Personal document type name. |
Request Example
{
"id": 1,
"mask": "string",
"name": "string"
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"ids": [
null
],
"row_affected": 1
}
}