campaigns

Update campaign item reviewers

Changed on

Atomically assigns and unassigns reviewers on campaign items in one request. All campaign_item_ids must belong to {campaign_id}. Existing assign pairs are ignored; missing unassign pairs are skipped. Completed reviews (decided_at set) are never removed. Requires settings-edit permission. Returns 400 if the campaign has ended.

post/campaigns/{campaign_id}/item-reviewers

Request

  • Base URL
    https://api.opal.dev/v1
  • Auth
    HTTP bearer

Path parameters

campaign_idstring uuid required

The ID of the campaign.

Request body

Example request

{
  "to_assign": [
    {
      "campaign_item_id": "f454d283-ca87-4a8a-bdbb-df212eca5353",
      "reviewer_id": "32acc112-21ff-4669-91c2-21e27683eaa1",
      "assignment_source": "MANUAL"
    }
  ],
  "to_unassign": [
    {
      "campaign_item_id": "f454d283-ca87-4a8a-bdbb-df212eca5353",
      "reviewer_id": "32acc112-21ff-4669-91c2-21e27683eaa1",
      "assignment_source": "MANUAL"
    }
  ],
  "to_remove_sources": [
    {
      "campaign_item_id": "f454d283-ca87-4a8a-bdbb-df212eca5353",
      "assignment_source": "MANUAL"
    }
  ]
}

Response

Reviews for all referenced items after the update.

Example response

{
  "reviews": [
    {
      "assignment_source": "MANUAL",
      "decision": "APPROVED"
    }
  ],
  "unassigned_preset_messages": [
    {
      "campaign_item_id": "f454d283-ca87-4a8a-bdbb-df212eca5353",
      "assignment_source": "MANUAL"
    }
  ]
}

Changes

    • warning

      added the new REDUCE_EXPIRATION enum value to the ////// response property for the response status

    • info

      added the optional property // to the response with the status

    • warning

      added the new PRINCIPAL_SELF enum value to the // response property for the response status

    • warning

      added the new PRINCIPAL_SELF enum value to the // response property for the response status

    • info

      added the new PRINCIPAL_SELF enum value to the request property //////

    • info

      added the new PRINCIPAL_SELF enum value to the request property //

    • info

      added the new PRINCIPAL_SELF enum value to the request property //////