Update policy details of a specified policy of a specified profile
- Print
- PDF
Update policy details of a specified policy of a specified profile
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Patch
/api/paps/{papId}/policies/{policyId}
Security
HTTP
Type bearer
Path parameters
papId
stringRequired
policyId
stringRequired
Body parameters
{
"name": "ProfilePolicy_15dec",
"description": "test",
"isActive": true,
"isDraft": false,
"isReadOnly": false,
"condition": {
"timeOfAccess": {
"dateSchedule": {
"fromDate": "2022-12-18T00:30:00Z",
"toDate": "2022-12-20T02:30:00Z",
"timezone": "Europe/Paris"
},
"daysSchedule": {
"fromTime": "2025-07-07T20:30:00Z",
"toTime": "2025-07-07T21:30:00Z",
"timezone": "Europe/Paris",
"days": [
"SATURDAY",
"TUESDAY"
]
}
}
},
"settings": [
{
"settingsType": "ITSM",
"connectionId": "71b94622-30ef-4d17-babb-94972ce4b2db",
"connectionType": "servicenow",
"isCommentRequired": false,
"isITSMEnabled": true,
"itsmFilterCriteria": [
{
"supportedTicketType": "change_request",
"filter": {
"sysparm_query": ""
}
}
]
},
{
"settingsType": "JUSTIFICATION",
"isJustificationRequired": true,
"justificationRegex": "XYZ"
}
],
"members": {
"users": [
{
"id": "CCy1O21HXuzSNzCp8vWI"
}
]
},
"resource": "aziewhoieflmzqd4k7yf",
"consumer": "papservice",
"accessType": "Allow"
}
object
id
string
name
string
description
string
isActive
boolean
isDraft
boolean
isReadOnly
boolean
condition
object
permissions
Array of object (PermissionDto)
object
id
string
name
string
description
string
consumer
string
actions
Array of string
string
resources
Array of string
string
isInline
boolean
isReadOnly
boolean
members
object (MemberDto)
id
string
name
string
memberType
string
Valid values[ "User", "Tag" ]
roles
Array of object (RoleDto)
object
id
string
name
string
description
string
permissions
Array of object (PermissionDto)
object
id
string
name
string
description
string
consumer
string
actions
Array of string
string
resources
Array of string
string
isInline
boolean
isReadOnly
boolean
isReadOnly
boolean
resources
Array of string
string
accessLevel
string
resource
string
consumer
string
accessType
string
resourceLabels
object
property*
Array of string additionalProperties
string
Responses
204
No Content
Was this article helpful?