Update campaign item reviewers
Changed onAtomically 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.
Request
- Base URLhttps://api.opal.dev/v1
- AuthHTTP bearer
Path parameters
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_EXPIRATIONenum value to the//////response property for the response status - info
added the optional property
//to the response with the status
- warning
- warning
added the new
PRINCIPAL_SELFenum value to the//response property for the response status - warning
added the new
PRINCIPAL_SELFenum value to the//response property for the response status - info
added the new
PRINCIPAL_SELFenum value to the request property////// - info
added the new
PRINCIPAL_SELFenum value to the request property// - info
added the new
PRINCIPAL_SELFenum value to the request property//////
- warning