POST api/MyGroup_Role/Update?api={api}&idgroup={idgroup}&idmyrole={idmyrole}

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

idgroup

ID group dạng chuỗi

string

Default value is

idmyrole

ID role dạng số

integer

Default value is 0

Body Parameters

MyGroup_Role
NameDescriptionTypeAdditional information
idgroup

ID group dạng chuỗi

string

None.

idmyrole

ID role dạng số

integer

None.

action

Hành động dạng chuỗi

string

None.

mygrouprole

Đối tượng GroupRole(đối tượng ràng buộc ko có trong CSDL)

MyGroupRole

None.

myrole

Đối tượng Role(đối tượng ràng buộc ko có trong CSDL)

MyRole

None.

Request Formats

application/json, text/json

Sample:
{
  "idgroup": "sample string 1",
  "idmyrole": 2,
  "action": "sample string 3",
  "mygrouprole": {
    "idgroup": "sample string 1",
    "name": "sample string 2",
    "idpartner": "sample string 3",
    "type": 64,
    "notuse": true,
    "datecreate": 1
  },
  "myrole": {
    "idmyrole": 1,
    "idparent": 1,
    "title": "sample string 2",
    "type": 64,
    "key": "sample string 3",
    "orderby": 1,
    "language": "sample string 4",
    "action": "sample string 5"
  }
}

application/xml, text/xml

Sample:
<MyGroup_Role xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Models">
  <action>sample string 3</action>
  <idgroup>sample string 1</idgroup>
  <idmyrole>2</idmyrole>
  <mygrouprole>
    <datecreate>1</datecreate>
    <idgroup>sample string 1</idgroup>
    <idpartner>sample string 3</idpartner>
    <name>sample string 2</name>
    <notuse>true</notuse>
    <type>64</type>
  </mygrouprole>
  <myrole>
    <action>sample string 5</action>
    <idmyrole>1</idmyrole>
    <idparent>1</idparent>
    <key>sample string 3</key>
    <language>sample string 4</language>
    <orderby>1</orderby>
    <title>sample string 2</title>
    <type>64</type>
  </myrole>
</MyGroup_Role>

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>