This method updates customer contract
| Name | Description |
|---|---|
| n_parent_doc_id | Parent |
| vc_doc_no | Number |
| n_doc_state_id | State |
| d_doc | Document date |
| d_time | Document time |
| d_begin | Begin date |
| d_end | End date |
| n_firm_id | Firm |
| vc_rem | Commentary |
Accept: application/json Content-Type: application/json
PUT /rest/v1/subjects/customers/78419501/contracts/78425301
{
"n_parent_doc_id": 40232501,
"vc_doc_no": "TEST-NO-1",
"n_doc_state_id": 4003,
"d_doc": "2019-07-26T00:00:00+03:00",
"d_time": "2019-07-26T00:00:00+03:00",
"d_begin": "2019-07-26T00:00:00+03:00",
"d_end": "2019-12-31T00:00:00+03:00",
"n_firm_id": 100,
"vc_rem": "Test contract remark",
"contract": {
"n_parent_doc_id": 40232501,
"vc_doc_no": "TEST-NO-1",
"n_doc_state_id": 4003,
"d_doc": "2019-07-26T00:00:00+03:00",
"d_time": "2019-07-26T00:00:00+03:00",
"d_begin": "2019-07-26T00:00:00+03:00",
"d_end": "2019-12-31T00:00:00+03:00",
"n_firm_id": 100,
"vc_rem": "Test contract remark"
}
}
Content-Type: application/json; charset=utf-8
200 OK
{
"contract": {
"n_doc_id": 78425301,
"n_doc_type_id": 1002,
"n_doc_state_id": 4003,
"n_parent_doc_id": 40232501,
"n_workflow_id": 10021,
"d_doc": "2019-07-26T00:00:00+03:00",
"d_time": "2019-07-26T00:00:00+03:00",
"vc_doc_no": "TEST-NO-1",
"d_begin": "2019-07-26T00:00:00+03:00",
"d_end": "2019-12-31T00:00:00+03:00",
"n_firm_id": 100,
"vc_rem": "Test contract remark",
"n_provider_id": 100,
"actions": {
"edit": "http://example.org/rest/v1/subjects/customers/78419501/contracts/78425301/edit",
"show": "http://example.org/rest/v1/subjects/customers/78419501/contracts/78425301"
},
"additional_values": {
}
},
"navigation": {
"self": "http://example.org/rest/v1/subjects/customers/78419501/contracts/78425301",
"customer": "http://example.org/rest/v1/subjects/customers/78419501",
"contracts": "http://example.org/rest/v1/subjects/customers/78419501/contracts"
}
}