Policy Update APIs
Update a policy user scope, define inclusion/exclusion rule for users using user emails. Only supports gDrive policies, separates internal or external users based on google domains registered in Nightfall.
The UUID of the policy to update
Successful response (processed immediately)
Invalid request parameters
Authentication failure
Operation prohibited on the policy
Policy not found
Rate Limit Exceeded or Daily Quota Exceeded
Internal Nightfall Error
POST /policy/v1/{policyID}/scope/users HTTP/1.1
Host: api.nightfall.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 136
{
"add": {
"include": [
"name@gmail.com"
],
"exclude": [
"name@gmail.com"
]
},
"delete": {
"include": [
"name@gmail.com"
],
"exclude": [
"name@gmail.com"
]
}
}{
"includedUsers": [
"text"
],
"excludedUsers": [
"text"
]
}Update a policy domain scope, define inclusion/exclusion rule for domains. Only supports gDrive policies.
The UUID of the policy to update
Successful response (processed immediately)
Invalid request parameters
Authentication failure
Operation prohibited on the policy
Policy not found
Rate Limit Exceeded or Daily Quota Exceeded
Internal Nightfall Error
POST /policy/v1/{policyID}/scope/domains HTTP/1.1
Host: api.nightfall.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 96
{
"add": {
"include": [
"text"
],
"exclude": [
"text"
]
},
"delete": {
"include": [
"text"
],
"exclude": [
"text"
]
}
}{
"includedDomains": [
"text"
],
"excludedDomains": [
"text"
]
}Update trigger-scoped users for a posture management policy. Modifies users stored in the trigger scope. Only supports posture management policies of gDrive.
The UUID of the policy to update
Successful response (processed immediately)
Invalid request parameters
Authentication failure
Operation prohibited on the policy
Policy not found
Rate Limit Exceeded or Daily Quota Exceeded
Internal Nightfall Error
POST /policy/v1/{policyID}/trigger/users HTTP/1.1
Host: api.nightfall.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 136
{
"add": {
"include": [
"name@gmail.com"
],
"exclude": [
"name@gmail.com"
]
},
"delete": {
"include": [
"name@gmail.com"
],
"exclude": [
"name@gmail.com"
]
}
}{
"includedUsers": [
"text"
],
"excludedUsers": [
"text"
]
}Update trigger-scoped domains for a posture management policy. Modifies domains stored in trigger scope. Only supports posture management policies of gDrive.
The UUID of the policy to update
Successful response (processed immediately)
Invalid request parameters
Authentication failure
Operation prohibited on the policy
Policy not found
Rate Limit Exceeded or Daily Quota Exceeded
Internal Nightfall Error
POST /policy/v1/{policyID}/trigger/domains HTTP/1.1
Host: api.nightfall.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 96
{
"add": {
"include": [
"text"
],
"exclude": [
"text"
]
},
"delete": {
"include": [
"text"
],
"exclude": [
"text"
]
}
}{
"includedDomains": [
"text"
],
"excludedDomains": [
"text"
]
}Last updated
Was this helpful?