POST api/MyRoleAction/Update?api={api}&idaction={idaction}

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

idaction

ID action dạng số

integer

Default value is 0

Body Parameters

MyRoleAction
NameDescriptionTypeAdditional information
idaction

ID action dạng số

integer

None.

title

Tiêu đề dạng chuỗi

string

None.

category

Khoa dạng chuỗi

string

None.

Request Formats

application/json, text/json

Sample:
{
  "idaction": 1,
  "title": "sample string 2",
  "category": "sample string 3"
}

application/xml, text/xml

Sample:
<MyRoleAction xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Models">
  <category>sample string 3</category>
  <idaction>1</idaction>
  <title>sample string 2</title>
</MyRoleAction>

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>