Project

General

Profile

Actions

Improvement #9993

open

Remove null and false attributes from payload

Added by Arshana Atapattu over 1 year ago. Updated 8 months ago.

Status:
New
Priority:
None
Assignee:
-
Start date:
13/03/2023
Due date:
% Done:

0%

Estimated time:
Device Type:
Component:
Type:

Description

Description

With a several policies the policy bundle payload could be very large.
It is possible to reduce the size of the payload by removing the false and null attributes from payload. Send only the values and 'true' attributes.
Ex: Below payload has the several null and false values.

{
"policyName":"Temp policy Bundle 2",
"description":"Temp policy Bundle Description 2",
"compliance":"enforce",
"ownershipType":null,
"active":true,
"policyType":"GENERAL",
"profile":{
"profileName":"Temp policy Bundle 2",
"deviceType":"android",
"profileFeaturesList":[ {
"featureCode":"PASSCODE_POLICY",
"deviceType":"android",
"content":{
"allowSimple":true,
"requireAlphanumeric":true,
"minLength":null,
"minComplexChars":null,
"maxPINAgeInDays":null,
"pinHistory":null,
"maxFailedAttemptsDeviceLock":null,
"maxFailedAttemptsDeviceWipe":null,
"maxTimeToLock":null,
"passcodePolicyWPExist":false

},
"correctiveActions":[

]
},
},
"deviceGroups":[ {
"id":5,
"name":"Group - 2"
}
],
"roles":[
"ANY"
],
"users":[
]
}
Actions

Also available in: Atom PDF