PUT api/2.0/settings/securityДанная функция требует аутентификацииОписание Параметры
Пример PUT api/2.0/settings/security
Host: yourportal.Р7.com
Content-Type: application/json
Accept: application/json
{
"id": "some text",
"enabled": true,
"subjects": [
"00000000-0000-0000-0000-000000000000"
]
} Возвращает Пример ответа application/json {
"status": 0,
"response": [
{
"webItemId": "00000000-0000-0000-0000-000000000000",
"users": [
{
"id": "00000000-0000-0000-0000-000000000000",
"displayName": "Mike Zanyatski",
"title": "Manager",
"avatarSmall": "url to small avatar",
"profileUrl": ""
}
],
"groups": [
{
"id": "00000000-0000-0000-0000-000000000000",
"name": "Group Name",
"manager": "Jake.Zazhitski"
}
],
"enabled": true,
"isSubItem": false
}
]
} text/xml <result>
<status>0</status>
<response>
<webItemId>00000000-0000-0000-0000-000000000000</webItemId>
<users>
<id>00000000-0000-0000-0000-000000000000</id>
<displayName>Mike Zanyatski</displayName>
<title>Manager</title>
<avatarSmall>url to small avatar</avatarSmall>
<profileUrl></profileUrl>
</users>
<groups>
<id>00000000-0000-0000-0000-000000000000</id>
<name>Group Name</name>
<manager>Jake.Zazhitski</manager>
</groups>
<enabled>true</enabled>
<isSubItem>false</isSubItem>
</response>
</result> |