Creates a Just-In-Time temporary access policy. Set jitType=1 to allow blocked applications or jitType=2 to elevate privileges for a specified duration. Prefetch computerID, platformID, computerName, and friendlyComputerName from Get Computer Resources. To target specific applications, also prefetch appRuleType and verifiedAppRepoIDs from Get App Rule Types.
post /dcapi/appctrl/temporaryaccess
https://{serverurl}/dcapi/appctrl/temporaryaccess
Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52
Target computer resource ID — prefetch from Get Computer Resources
Access window length in minutes (e.g. '60'). Applicable when durationType=1
JIT type (1=Allow blocked applications, 2=Elevate privileges)
Policy ID (null when creating a new policy)
Display name of the target computer — prefetch from Get Computer Resources
Display name for the temporary access policy
System name of the target computer — prefetch from Get Computer Resources
Nested object controlling which applications are allowed or elevated
JIT access type (1=All Applications, 2=Specific Applications)
Whether this uses allow/blocklist mode (false for standard JIT)
Specific application group config (null when jitAccessType=1 for all apps)
Existing rules already in the group (empty array for a new policy)
Rules to add — prefetch appRuleType and verifiedAppRepoIDs from Get App Rule Types
Rule type (1=Vendor, 2=Product, 3=Executable, 4=FileHash) — prefetch from Get App Rule Types
Verified repository IDs (vendorID or productVendorID) — prefetch from Get App Rule Types
Unverified repository IDs (empty array if not applicable)
Rules to remove (empty array for a new policy)
Optional description of the policy
Access code (null to let the server auto-generate one)
Platform ID (1=Windows, 2=Mac)
How the duration is specified (1=Fixed minutes, 2=Date range)
Restrict policy to a specific user (null for all users on the computer)
Start time in epoch ms (null when durationType=1)
End time in epoch ms (null when durationType=1)
Creation timestamp (leave empty — server-generated)
Creator user name (leave empty — server-generated)
Creator user ID (leave empty — server-generated)
curl --request POST \
--url https://appdomains/dcapi/appctrl/temporaryaccess \
--header 'Accept: application/addTemporaryAccessPolicy.v2+json' \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'Content-Type: application/addTemporaryAccessPolicy.v2+json' \
--data '{"computerID":"605","durationMinutes":"60","jitType":1,"friendlyComputerName":"AndrewLasch","policyName":"JIT Allow All","computerName":"AndrewLasch","jitSettings":{"isAllowBlocklist":false,"jitAccessType":2},"platformID":1,"durationType":1}'Application Allowing (jitType=1) — All applications, 60-minute duration
{
"computerID": "605",
"durationMinutes": "60",
"jitType": 1,
"policyID": null,
"friendlyComputerName": "AndrewLasch",
"policyName": "JIT Allow All",
"computerName": "AndrewLasch",
"jitSettings": {
"isAllowBlocklist": false,
"specificAppGroup": null,
"jitAccessType": 2
},
"description": "",
"platformID": 1,
"durationType": 1
}
Application Allowing (jitType=1) — Specific applications with addedRules
{
"durationFrom": null,
"jitType": 1,
"createdUserID": "",
"friendlyComputerName": "AndrewLasch",
"policyName": "JIT 2",
"durationTo": null,
"jitSettings": {
"isAllowBlocklist": false,
"specificAppGroup": {
"removedRules": [],
"applicationRules": [],
"addedRules": [
{
"appRuleType": 1,
"verifiedAppRepoIDs": [
"610"
]
}
]
},
"jitAccessType": 2
},
"description": "",
"platformID": 1,
"userID": null,
"durationType": 1,
"computerID": "605",
"durationMinutes": "60",
"policyID": null,
"computerName": "AndrewLasch",
"accessCode": null,
"createdTime": "",
"createdUser": ""
}
Application Elevation (jitType=2) — Elevate privileges for specific applications
{
"computerID": "605",
"durationMinutes": "120",
"jitType": 2,
"policyID": null,
"friendlyComputerName": "AndrewLasch",
"policyName": "JIT Elevate Policy",
"computerName": "AndrewLasch",
"jitSettings": {
"isAllowBlocklist": false,
"specificAppGroup": {
"removedRules": [],
"applicationRules": [],
"addedRules": [
{
"appRuleType": 1,
"verifiedAppRepoIDs": [
"610"
]
}
]
},
"jitAccessType": 2
},
"description": "Elevate privileges for specific app",
"platformID": 1,
"durationType": 1
}
Unique identifier for the created temporary access policy
Whether the policy was created successfully
Unauthorized error code: credentials missing, expired, or invalid
Authentication failure reason
Internal error code: INTERNAL_ERROR when exception occurs creating JIT policy
Detailed message: Exception while adding temporary access policy
Temporary access policy created successfully
{
"policyID": 1001,
"status": true
}
Authentication credentials missing or invalid
{
"errorMessage": "Authentication credentials are missing or invalid",
"errorCode": "UNAUTHORIZED"
}
Internal error while creating temporary access policy
{
"errorMessage": "Exception while adding temporary access policy",
"errorCode": "INTERNAL_ERROR"
}
![]()
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.