Update opportunities
This endpoint updates existing opportunities, matched by their Vome ID. Only the fields you send are changed.
An id is required on every entry, and must belong to your organization. Updating an opportunity does not notify anyone already approved onto it.
Endpoint
PUT api/opportunities/bulk-update/Example Request Payload
{
"allow_partial": false,
"opportunities": [
{
"id": "2f56f3ef-08f5-4e5a-bf5b-76ca8fc4d5f1",
"description": "Updated description."
},
{
"id": "7c2a91bb-3f6d-42a7-9d21-0f0a2f5c77aa",
"published": false,
"watcher_ids": [] // clears every watcher
}
]
}Behavior
Omitting a field leaves it unchanged.
Sending
tags,site_linksorwatcher_idsreplaces what is there. An empty list clears them; leaving the field out leaves them alone.coordinator_idscannot be cleared. Sending an empty list is refused, because an opportunity must keep at least one coordinator.published: falsereturns the opportunity to draft.An opportunity can be moved to another category by sending
category_id.