Delphi (ActiveX) / Microsoft Graph / Update retentionLabel
Back to Collection Items
var
begin
json.UpdateString('descriptionForAdmins','Updated description for Admins');http.AuthToken := '<access_token>';json.EmitSb(sbRequestBody.ControlInterface);success := http.HttpSb('PATCH','https://graph.microsoft.com/beta/security/labels/retentionLabels/{{retentionLabelId}}',sbRequestBody.ControlInterface,'utf-8','application/json',resp.ControlInterface);
Curl Command
curl -X PATCH
-H "Authorization: Bearer <access_token>"
-d '{
"descriptionForAdmins": "Updated description for Admins"
}'
https://graph.microsoft.com/beta/security/labels/retentionLabels/{{retentionLabelId}}
Postman Collection Item JSON
{
"name": "Update retentionLabel",
"request": {
"method": "PATCH",
"header": [
],
"body": {
"mode": "raw",
"raw": "{\n \"descriptionForAdmins\": \"Updated description for Admins\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://graph.microsoft.com/beta/security/labels/retentionLabels/{{retentionLabelId}}",
"protocol": "https",
"host": [
"graph",
"microsoft",
"com"
],
"path": [
"beta",
"security",
"labels",
"retentionLabels",
"{{retentionLabelId}}"
]
}
},
"response": [
]
}