This method updates customer
| Name | Description |
|---|---|
| customer[n_subj_state_id] | Subject state |
| customer[vc_code] | Code |
| customer[t_tags] | Tags list |
| customer[n_subj_group_id] | Subject group |
| customer[group_ids] | Groups list |
| customer[vc_rem] | Commentary |
Accept: application/json Content-Type: application/json
PUT /rest/v1/subjects/customers/78194501
{
"customer": {
"n_subj_state_id": 5011,
"vc_code": "Meine updated",
"t_tags": [
"тестовый_абонент"
],
"n_subj_group_id": 55054601,
"group_ids": [
55027301
],
"vc_rem": "Commentary updated"
}
}
Content-Type: application/json; charset=utf-8
200 OK
{
"customer": {
"n_subject_id": 78194501,
"n_base_subject_id": 78194101,
"vc_base_subject_name": "Майне Клаус",
"n_subj_state_id": 5011,
"vc_name": "Майне К.",
"vc_code": "Meine updated",
"d_created": "2015-08-11T23:20:57+03:00",
"t_tags": [
"тестовый_абонент"
],
"vc_rem": "Commentary updated",
"n_firm_id": 100,
"n_subj_group_id": 55054601,
"group_ids": [
55054601,
55027301
],
"additional_values": {
"SUBJ_VAL_SERVICE_SAMPLE": [
null
],
"SUBJ_VAL_N_WORKSTATION_COUNT": null,
"SUBJ_VAL_D_CONNECTION_DATE": null,
"SUBJ_VAL_N_PERSONAL_CARD_STATE_ID": null,
"Дополнительный текстовый параметр": [
null
]
}
},
"actions": {
"edit": "http://example.org/rest/v1/subjects/customers/78194501/edit"
},
"navigation": {
"self": "http://example.org/rest/v1/subjects/customers/78194501",
"accounts": "http://example.org/rest/v1/subjects/customers/78194501/accounts",
"documents": "http://example.org/rest/v1/subjects/customers/78194501/documents",
"equipment": "http://example.org/rest/v1/subjects/customers/78194501/equipment"
}
}