---
title: s_hr_op_edit
url: 'https://gidas.saver.lt/api/s_hr_op_edit'
markdown: 'https://gidas.saver.lt/api/s_hr_op_edit.md'
date: '2021-09-10'
description: 'Last update 2021-09-10 This method is for inserting / editing Human resource operations. All parameters are expected via HTTP POST. Mandatory parameters Name Description Notes session_id Session id login RIVILE username pass RIVILE password hashed in MD5 hrOperationId HR operation…'
taxonomy:
  category:
    - docs
---

[](#)  [ Pradžia ](https://gidas.saver.lt/)     [ API ](https://gidas.saver.lt/api)      s\_hr\_op\_edit    

# s\_hr\_op\_edit

Last update 2021-09-10

This method is for inserting / editing Human resource operations. All parameters are expected via HTTP POST.

#### Mandatory parameters

| Name | Description | Notes |
|---|---|---|
| **session\_id** | Session id |  |
| **login** | RIVILE username |  |
| **pass** | RIVILE password hashed in **MD5** |  |
| **hrOperationId** | HR operation ID, 0 for new operation | k16\_kodas\_6a |
| **hrOperationType** | HR operation type | k16\_tipas |
| **employeeCode** | Employee code | k16\_kodas\_4a or a06\_kodas\_tb |
| **hrOperationNr** | Document number | k16\_dok\_nr |
| **hrOperationDate** | Operation date | k16\_op\_date |
| **hrOperationDateFrom** | Operation period from | k16\_beg\_date |
| **hrOperationDateTo** | Operation period to | k16\_end\_date |
| **hrOperationHolidayCode** | Holiday types code | k16\_kodas\_1a\_19 |

#### Optional parameters

| Name | Description | Notes |
|---|---|---|
| **employeePositionCode** | k16\_kodas\_0a |
| **employeeDep** | Employee department | k16\_kodas\_is |

#### Web service returns

| Name | Description | Notes |
|---|---|---|
| **status** | Web service status |  |
| **description** | Status description |  |
| **login** | RIVILE username |  |
| **hrOperationId** | HR operation ID | k16\_kodas\_6a |

#### Web service status list

| Name | Description |
|---|---|
| **00** | Ok |
| **01** | No parameter **session\_id** |
| **02** | No parameter **login** |
| **03** | No parameter **pass** |
| **04** | Login failed |
| **05** | No parameter **hrOperationId** |
| **06** | HR operation not found |
| **07** | HR document is confirmed |
| **08** | **hrOperationType** values 1-12 only allowed |
| **09** | No parameter **employeeCode** |
| **10** | **employeeCode** not found |
| **11** | New document. Mandatory field - **hrOperationNr** required. |
| **12** | Parameter **hrOperationDateFrom** / **hrOperationDateTo** validation error. Input must be yyyy-mm-dd format. |
| **14** | New document. Mandatory field - **hrOperationDateFrom** / **hrOperationDateTo** required |
| **15** | Parameter **hrOperationDate** validation error. Input must be yyyy-mm-dd format. |
| **97** | SQL Server error |
| **99** | DB connect error |

 [ ](https://gidas.saver.lt/api/s_todo_list) [](https://gidas.saver.lt/api/s_hr_op_list)

---

## Navigation

- Parent: [API](https://gidas.saver.lt/api.md)
- Previous: [s_todo_list](https://gidas.saver.lt/api/s_todo_list.md)
- Next: [s_hr_op_list](https://gidas.saver.lt/api/s_hr_op_list.md)
