Improvement #9993
openRemove null and false attributes from payload
0%
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":[
]
}