Create Android Passcode Policy payload
https://{server-hostname}:8383/api/v1/mdm/profiles/{profile_id}/payloads/androidpasscodepolicy
MDMDeviceMgmt.CREATECopied!
Authorization: d92d4xxxxxxxxxxxxx15f52
Unique identifier of the profile. Obtain from the Create Profile or Get Profiles response
Passcode quality type. -1 = None, 1 = Pattern, 2 = Numeric, 3 = Alphabetic, 4 = Alphanumeric, 5 = Complex. Default: -1
Minimum passcode length required. -1 = Not Configured. Default: -1
Seconds of inactivity before automatic screen lock. 0 = Not Configured. Default: 0
Maximum failed passcode attempts before device wipe. -1 = Not Configured. Default: -1
Maximum passcode age in days before forced change. 0 = No Expiry. Default: 0
Number of previous passcodes maintained in history. 0 = No History. Default: 0
Minimum number of lowercase characters required
Minimum number of non-letter characters required
Minimum number of numeric characters required
Minimum number of symbol characters required
Minimum number of uppercase characters required
Minimum number of letter characters required
Maximum number of characters allowed in the passcode
Maximum length of allowed numeric sequence in the passcode
Grace period in minutes before passcode is required after screen lock. Default: 60
Whether fingerprint authentication is allowed. 0 = Restrict, 1 = Allow. Default: 1
Whether iris scan authentication is allowed. Default: true
Whether face unlock authentication is allowed. Default: true
Whether unified lock (same lock for device and work profile) is allowed. Default: true
Whether a default passcode is set on the device. Default: false
Whether the user can change the default passcode. Default: true
Default passcode value (write-only; use new_default_passcode_id for credential ID reads)
Scope of the passcode policy. 0 = Device, 1 = Work Profile. Default: 0
Whether Smart Lock trust agents are allowed. 0 = Disallow, 1 = Allow. Default: 1
ID of the saved credential for the default passcode
Password complexity level. 1 = Low, 2 = Medium, 3 = High. Default: 1
Timeout in seconds before strong authentication is required. 0 = Use Default. Default: 0
curl --request POST \
--url https://appdomain/api/v1/mdm/profiles/{profile_id}/payloads/androidpasscodepolicy \
--header 'Accept: application/json' \
--header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \
--header 'Content-Type: application/json' \
--data '{"min_passcode_length":-1,"max_passcode_age":0,"passcode_type":-1,"min_lower_case_length":1,"min_non_letter_length":1,"no_of_passcode_maintained":0,"min_symbol_length":1,"auto_lock_idle_for":0,"min_numeric_length":1,"max_failed_attempts":-1}'Add Passcode payload to the profile
{
"min_passcode_length": -1,
"max_passcode_age": 0,
"passcode_type": -1,
"min_lower_case_length": 1,
"min_non_letter_length": 1,
"no_of_passcode_maintained": 0,
"min_symbol_length": 1,
"auto_lock_idle_for": 0,
"min_numeric_length": 1,
"max_failed_attempts": -1
}
Unique identifier for the created payload item
Passcode quality type. -1 = None, 1 = Pattern, 2 = Numeric, 3 = Alphabetic, 4 = Alphanumeric, 5 = Complex. Default: -1
Minimum passcode length required. -1 = Not Configured. Default: -1
Seconds of inactivity before automatic screen lock. 0 = Not Configured. Default: 0
Maximum failed passcode attempts before device wipe. -1 = Not Configured. Default: -1
Maximum passcode age in days before forced change. 0 = No Expiry. Default: 0
Number of previous passcodes maintained in history. 0 = No History. Default: 0
Minimum number of lowercase characters required
Minimum number of non-letter characters required
Minimum number of numeric characters required
Minimum number of symbol characters required
Minimum number of uppercase characters required
Minimum number of letter characters required
Maximum number of characters allowed in the passcode
Maximum length of allowed numeric sequence in the passcode
Grace period in minutes before passcode is required after screen lock. Default: 60
Whether fingerprint authentication is allowed. 0 = Restrict, 1 = Allow. Default: 1
Whether iris scan authentication is allowed. Default: true
Whether face unlock authentication is allowed. Default: true
Whether unified lock (same lock for device and work profile) is allowed. Default: true
Whether a default passcode is set on the device. Default: false
Whether the user can change the default passcode. Default: true
Default passcode value (write-only; use new_default_passcode_id for credential ID reads)
Scope of the passcode policy. 0 = Device, 1 = Work Profile. Default: 0
Whether Smart Lock trust agents are allowed. 0 = Disallow, 1 = Allow. Default: 1
ID of the saved credential for the default passcode
Password complexity level. 1 = Low, 2 = Medium, 3 = High. Default: 1
Timeout in seconds before strong authentication is required. 0 = Use Default. Default: 0
Passcode payload successfully added
{
"min_passcode_length": -1,
"max_passcode_age": 0,
"payload_id": 9007199254741000,
"passcode_type": -1,
"min_lower_case_length": 1,
"min_non_letter_length": 1,
"no_of_passcode_maintained": 0,
"min_symbol_length": 1,
"auto_lock_idle_for": 0,
"min_numeric_length": 1,
"max_failed_attempts": -1
}
![]()
Duration: 1 minute | Threshold: 30 | Lock period: 5 minutes
Duration - Time window for the threshold.
Threshold - Number of API calls allowed within the specified duration.
Lock Period - Wait time before consecutive API requests.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.