Update Campaign

put

/access-governance/access-reviews/20250331/campaigns/{campaignId}

Updates an existing campaign. You can edit a campaign in the Draft or Scheduled state.

Request

Path Parameters
Header Parameters
  • For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
  • The client request ID for tracing. The only valid characters for request IDs are letters, numbers, underscore, and dash.
Body ()
Details for updating a campaign.
Root Schema : CreateCampaignDetails
Type: object
The information about new campaign.
Show Source
Nested Schema : criteria
Type: array
Maximum Number of Items: 20
The criteria for the campaign.
Show Source
Nested Schema : reviewExclusions
Type: array
Maximum Number of Items: 20
List of the review types which are excluded from campaign.
Show Source
  • Allowed Values: [ "ACCOUNT", "ROLE" ]
    The review type of a review task.
Nested Schema : Criteria
Type: object
The criteria to use as a filter.
Show Source
  • conditions
    Maximum Number of Items: 100
    Filter condition (these conditions have an AND binding between them).
  • subCriteria
    The list of values of the criteria.
  • Allowed Values: [ "ORGANIZATION", "JOB_CODE", "IDENTITY_LOCATION", "RESOURCE", "RESOURCE_LOCATION", "ENTITLEMENT", "ROLE", "DOMAIN", "COMPARTMENT", "CLOUD_PROVIDER", "POLICY", "POLICY_CREATED", "CUSTOM_ATTRIBUTE", "CUSTOM_ATTRIBUTE_VALUE", "IDENTITY_COLLECTION", "IC_CREATED", "TARGET_IDENTITY", "TARGET", "GLOBAL_IDENTITY", "AM_WORKFLOW", "NOT_REVIEWED_SINCE", "ACCESS_GUARDRAIL", "GRANTED_PERMISSION_TYPE", "TEMPORAL_TYPE" ]
    The type of the criteria.
  • value
    Maximum Number of Items: 500
    The list of values of the criteria (these values have an OR binding between them).
Nested Schema : conditions
Type: array
Maximum Number of Items: 100
Filter condition (these conditions have an AND binding between them).
Show Source
Nested Schema : subCriteria
Type: array
The list of values of the criteria.
Show Source
Nested Schema : value
Type: array
Maximum Number of Items: 500
The list of values of the criteria (these values have an OR binding between them).
Show Source
Nested Schema : Condition
Type: object
The information about Condition.
Show Source
Nested Schema : additionalAttributes
Type: object
Additional Properties Allowed
Show Source
Additional attributes for additional information related to the condition.
Nested Schema : BasicCondition
Type: object
The information about Condition.
Show Source
  • Allowed Values: [ "STRING", "NUMBER", "BOOLEAN", "DATE" ]
    Data type for the condition Identifier
  • Minimum Length: 1
    Maximum Length: 255
    Access Guardrails Identifier
  • Minimum Length: 1
    Maximum Length: 512
    Left hand side of the condition.
  • Allowed Values: [ "EQ", "NE", "GT", "LT", "GTE", "LTE", "BEFORE", "AFTER", "TILL", "FROM", "BETWEEN", "NOT_BETWEEN", "IN", "NOT_IN", "CONTAINS", "NOT_CONTAINS", "BEGINS_WITH", "NOT_BEGINS_WITH", "ENDS_WITH", "NOT_ENDS_WITH", "IS_NULL", "IS_NOT_NULL", "EQUAL_WITH_NULL" ]
    The operator for a access guardrail.
  • rhs
    Right hand side of the condition.
  • rhsUiDetails
    Right hand side details of the condition.
Nested Schema : BasicConditionCollection
Type: object
Collection of conditions.
Show Source
Nested Schema : rhs
Type: array
Right hand side of the condition.
Show Source
Nested Schema : rhsUiDetails
Type: array
Right hand side details of the condition.
Show Source
Nested Schema : UiDetail
Type: object
Ui detail for rendering values on UI
Show Source
Nested Schema : items
Type: array
List of condition.
Show Source
Back to Top

Response

Supported Media Types

200 Response

The campaign was successfully updated.
Headers
  • For optimistic concurrency control. See `if-match`.
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Campaign
Type: object
Summary of the AgcsCampaign.
Show Source
Nested Schema : InstanceWorkflow
Type: object
The workflow of an approval process instance.
Show Source
Nested Schema : criteria
Type: array
Maximum Number of Items: 20
The selection criteria for the campaign.
Show Source
Nested Schema : messages
Type: array
Maximum Number of Items: 50
The list of messages.
Show Source
Nested Schema : reviewExclusions
Type: array
Maximum Number of Items: 20
List of the review types which are excluded from campaign.
Show Source
  • Allowed Values: [ "ACCOUNT", "ROLE" ]
    The review type of a review task.
Nested Schema : reviewLevels
Type: array
Maximum Number of Items: 20
The list of review level details.
Show Source
Nested Schema : SelectionReview
Type: object
The selection count summary for the campaign.
Show Source
Nested Schema : stages
Type: array
Minimum Number of Items: 1
Maximum Number of Items: 20
The approval workflow stages.
Show Source
Nested Schema : InstanceWorkflowStage
Type: object
The approval process instance stage.
Show Source
Nested Schema : approvers
Type: array
Minimum Number of Items: 1
Maximum Number of Items: 20
The approvals required for the stage to complete.
Show Source
Nested Schema : InstanceWorkflowApprover
Type: object
The approvals required within the stage.
Show Source
Nested Schema : TemplateInstance
Type: object
Instance of an approval template.
Show Source
Nested Schema : parameterValues
Type: array
List of approval template parameter values.
Show Source
Nested Schema : TemplateParamTuple
Type: object
Value(s) for the template parameter identified by id.
Show Source
  • Minimum Length: 1
    Maximum Length: 255
    Description of the template parameter id.
  • Minimum Length: 1
    Maximum Length: 255
    The template parameter id. Unique within the template parameter list.
Nested Schema : CampaignCriteria
Type: object
The criteria filter.
Show Source
  • conditions
    Maximum Number of Items: 100
    Filter condition (these conditions have an AND binding between them).
  • criteriaValue
    Maximum Number of Items: 500
    The list of values of the criteria.
  • subCriteria
    Maximum Number of Items: 500
    The list of values of the Campaign criteria
  • Allowed Values: [ "ORGANIZATION", "JOB_CODE", "IDENTITY_LOCATION", "RESOURCE", "RESOURCE_LOCATION", "ENTITLEMENT", "ROLE", "DOMAIN", "COMPARTMENT", "CLOUD_PROVIDER", "POLICY", "POLICY_CREATED", "CUSTOM_ATTRIBUTE", "CUSTOM_ATTRIBUTE_VALUE", "IDENTITY_COLLECTION", "IC_CREATED", "TARGET_IDENTITY", "TARGET", "GLOBAL_IDENTITY", "AM_WORKFLOW", "NOT_REVIEWED_SINCE", "ACCESS_GUARDRAIL", "GRANTED_PERMISSION_TYPE", "TEMPORAL_TYPE" ]
    The type of the criteria.
Nested Schema : conditions
Type: array
Maximum Number of Items: 100
Filter condition (these conditions have an AND binding between them).
Show Source
Nested Schema : criteriaValue
Type: array
Maximum Number of Items: 500
The list of values of the criteria.
Show Source
Nested Schema : subCriteria
Type: array
Maximum Number of Items: 500
The list of values of the Campaign criteria
Show Source
Nested Schema : Condition
Type: object
The information about Condition.
Show Source
Nested Schema : additionalAttributes
Type: object
Additional Properties Allowed
Show Source
Additional attributes for additional information related to the condition.
Nested Schema : BasicCondition
Type: object
The information about Condition.
Show Source
  • Allowed Values: [ "STRING", "NUMBER", "BOOLEAN", "DATE" ]
    Data type for the condition Identifier
  • Minimum Length: 1
    Maximum Length: 255
    Access Guardrails Identifier
  • Minimum Length: 1
    Maximum Length: 512
    Left hand side of the condition.
  • Allowed Values: [ "EQ", "NE", "GT", "LT", "GTE", "LTE", "BEFORE", "AFTER", "TILL", "FROM", "BETWEEN", "NOT_BETWEEN", "IN", "NOT_IN", "CONTAINS", "NOT_CONTAINS", "BEGINS_WITH", "NOT_BEGINS_WITH", "ENDS_WITH", "NOT_ENDS_WITH", "IS_NULL", "IS_NOT_NULL", "EQUAL_WITH_NULL" ]
    The operator for a access guardrail.
  • rhs
    Right hand side of the condition.
  • rhsUiDetails
    Right hand side details of the condition.
Nested Schema : BasicConditionCollection
Type: object
Collection of conditions.
Show Source
Nested Schema : rhs
Type: array
Right hand side of the condition.
Show Source
Nested Schema : rhsUiDetails
Type: array
Right hand side details of the condition.
Show Source
Nested Schema : UiDetail
Type: object
Ui detail for rendering values on UI
Show Source
Nested Schema : items
Type: array
List of condition.
Show Source
Nested Schema : CriteriaValue
Type: object
The criteria value.
Show Source
Nested Schema : subCriteria
Type: array
Maximum Number of Items: 500
The list of values of the Campaign criteria.
Show Source
Nested Schema : Message
Type: object
Information about an event.
Show Source
Nested Schema : ReviewLevelDetails
Type: object
The details of a review level.
Show Source
Nested Schema : reviewerAttributes
Type: array
Maximum Number of Items: 20
The list of reviewer attributes (only when reviewerType is CUSTOM_OWNER or CLOUD_REVIEWER).
Show Source
Nested Schema : ReviewerAttribute
Type: object
The attributes of the reviewer.
Show Source
Nested Schema : Tally
Type: object
the tally.
Show Source

400 Response

Bad Request
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

401 Response

Unauthorized
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

404 Response

Not Found
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

409 Response

Conflict
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

412 Response

Precondition failed
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

429 Response

Too Many Requests
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

500 Response

Internal Server Error
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source

Default Response

Unknown Error
Headers
  • Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
Body ()
Root Schema : Error
Type: object
Error Information.
Show Source
Back to Top

Examples

The following example shows how to update a campaign. In this example, we are updating a Draft campaign.

Note:

To update the campaign, your campaign must either be in the Scheduled or Draft state.

cURL Request Example

curl -i -X POST \
   -H "Authorization:Bearer <your-access-token>" \
   -H "Content-Type:application/json" \
   -d \
'{
  "displayName": "HRMS_Annual_Access_Review",
  "description": "HRMS_Annual_Access_Review",
  "type": "ACCESS",
  "criteria": [
    {
      "type": "CUSTOM_ATTRIBUTE",
      "value": [
        "organization.displayName"
      ],
      "subCriteria": [
        {
          "type": "CUSTOM_ATTRIBUTE_VALUE",
          "value": ["HRMS_Review_Org", "SalesOps"]
        }
      ]
    }
  ],
  "ownerId": "globalId.8d51efbf-abxx-4f09-aexx-7bcc0f9de5be.18.a84836862exx58ba29e9002afd63a7fb",
  "reviewWorkflowId": "Guid_5b0bcda9-30xx-4cb3-b7xx-14a7a99fb2de",
  "justificationRule": "REQUIRE_FOR_ALL",
  "scope": "AG",
  "submissionType": "SUBMIT_NOW",
  "isRecurring": false,
  "isAccountReviewAllowed": true
}
' \
 '<${service-instance-url}/access-governance/access-reviews/20250331/campaigns/${campaignId}>'

Example Request Payload

POST ${service-instance-url}/access-governance/access-reviews/20250331/campaigns/${campaignId}
{
  "displayName": "HRMS_Annual_Access_Review",
  "description": "HRMS_Annual_Access_Review",
  "type": "ACCESS",
  "criteria": [
    {
      "type": "CUSTOM_ATTRIBUTE",
      "value": [
        "organization.displayName"
      ],
      "subCriteria": [
        {
          "type": "CUSTOM_ATTRIBUTE_VALUE",
          "value": ["HRMS_Review_Org", "SalesOps"]
        }
      ]
    }
  ],
  "ownerId": "globalId.8d51efbf-abxx-4f09-aexx-7bcc0f9de5be.18.a84836862exx58ba29e9002afd63a7fb",
  "reviewWorkflowId": "Guid_5b0bcda9-30xx-4cb3-b7xx-14a7a99fb2de",
  "justificationRule": "REQUIRE_FOR_ALL",
  "scope": "AG",
  "submissionType": "SUBMIT_NOW",
  "isRecurring": false,
  "isAccountReviewAllowed": true
}

Example of the Response Code

It may take a few seconds to create a campaign. Do not try to abort the request.

You'll receive 200 OK response along with the following response body:

{
  "id": "ocid1.agcscampaign.oc1.iad.amaxxxxxebkbezqa6n4vgm5ipxuixx27swzs5cpjsewecxpgqhl2ryhxncuq",
  "displayName": "HRMS_Annual_Access_Review",
  "type": "ACCESS",
  "ownerId": "globalId.8d51efbf-abxx-4f09-aexx-7bcc0f9de5be.18.a84836862exx58ba29e9002afd63a7fb",
  "customReviewerId": null,
  "customReviewerName": null,
  "ownerName": "Jordan Patel",
  "ownerUsername": null,
  "ownerEmail": null,
  "creatorId": "88b9690exx344653953570480031e7d0",
  "reviewProgress": null,
  "scope": "AG",
  "status": "SCHEDULED",
  "timeStarted": "2025-08-12T11:58:53.306Z",
  "timeDue": "2025-08-12T11:58:53.306Z",
  "timeCreated": "2025-08-12T11:58:53.546Z",
  "criteria": [
    {
      "type": "CUSTOM_ATTRIBUTE",
      "criteriaValue": [
        {
          "id": "organization.displayName",
          "name": "Source Division",
          "subCriteria": [
            {
              "type": "CUSTOM_ATTRIBUTE_VALUE",
              "criteriaValue": [
                {
                  "id": null,
                  "name": "HRMS_Review_Org",
                  "subCriteria": null
                },
                {
                  "id": null,
                  "name": "SalesOps",
                  "subCriteria": null
                }
              ],
              "conditions": null,
              "subCriteria": null
            }
          ]
        }
      ],
      "conditions": null,
      "subCriteria": null
    }
  ],
  "reviewWorkflowId": "Guid_5b0bcda9-30xx-4cb3-b7xx-14a7a99fb2de",
  "reviewLevels": [],
  "approvalWorkflow": null,
  "selectionReview": null,
  "completionRule": null,
  "justificationRule": "REQUIRE_FOR_ALL",
  "description": "HRMS_Annual_Access_Review",
  "isRecurring": false,
  "timeSeriesStarted": null,
  "frequency": "ONE_TIME",
  "seriesRecurrences": null,
  "messages": null,
  "submissionType": null,
  "isAccountReviewAllowed": null,
  "timeLastPendingGenerated": null
}
Back to Top