POST api/catedocument/Update?api={api}&idlv={idlv}

Sửa dữ liệu với điều kiện truyền vào

Request Information

URI Parameters

NameDescriptionTypeAdditional information
api

Mã API do hệ thống cung cấp

string

Required

idlv

ID linh vực

integer

Default value is 0

Body Parameters

catedocument
NameDescriptionTypeAdditional information
idfield

ID lĩnh vực

integer

None.

title

Tiêu đề

string

None.

shorttitle

Tiêu đề không dấu

string

None.

status

Trạng thái

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "idfield": 1,
  "title": "sample string 2",
  "shorttitle": "sample string 3",
  "status": true
}

application/xml, text/xml

Sample:
<catedocument xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Obj">
  <idfield>1</idfield>
  <shorttitle>sample string 3</shorttitle>
  <status>true</status>
  <title>sample string 2</title>
</catedocument>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

DataUpdate
NameDescriptionTypeAdditional information
status

Trạng thái trả về dữ liệu: success, error

string

None.

message

Nội dung thông báo

string

None.

codemessage

Mã code trả về

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status": "sample string 1",
  "message": "sample string 2",
  "codemessage": "samplestring2"
}

text/javascript, application/javascript, application/json-p

Sample:
/**/ typeof  === 'function' && ({"status":"sample string 1","message":"sample string 2","codemessage":"samplestring2"});

application/xml, text/xml

Sample:
<DataUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Models">
  <codemessage>samplestring2</codemessage>
  <message>sample string 2</message>
  <status>sample string 1</status>
</DataUpdate>