POST api/Policy/{id}/Surface

Suface專區政策建立

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

目標政策群組ID(Azure AD 群組ID)

string

Required

Body Parameters

畫面內Surface相關資訊

SurfaceConfig
NameDescriptionTypeAdditional information
SchoolID

string

None.

changeUefiSettingsPermission

boolean

None.

cameras

boolean

None.

microphone

boolean

None.

bluetooth

boolean

None.

wifi

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "SchoolID": "sample string 1",
  "changeUefiSettingsPermission": true,
  "cameras": true,
  "microphone": true,
  "bluetooth": true,
  "wifi": true
}

application/xml, text/xml

Sample:
<SurfaceConfig xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iMOE_Back_End.Controllers">
  <SchoolID>sample string 1</SchoolID>
  <bluetooth>true</bluetooth>
  <cameras>true</cameras>
  <changeUefiSettingsPermission>true</changeUefiSettingsPermission>
  <microphone>true</microphone>
  <wifi>true</wifi>
</SurfaceConfig>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ActionResponse
NameDescriptionTypeAdditional information
Account

執行帳號

string

None.

Action

執行功能

string

None.

result

執行結果

boolean

None.

remark

執行失敗時所使用欄位,備註錯誤原因

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Account": "sample string 1",
  "Action": "sample string 2",
  "result": true,
  "remark": "sample string 4"
}

application/xml, text/xml

Sample:
<ActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iMOE_Back_End.Controllers">
  <Account>sample string 1</Account>
  <Action>sample string 2</Action>
  <remark>sample string 4</remark>
  <result>true</result>
</ActionResponse>