Opportunities API
POST/api/v1/opportunities/suggestions/{id}/accept
Product availabilityAlgaPSA

Accept opportunity suggestion

Creates a prefilled opportunity and atomically marks the suggestion accepted.

RBAC · opportunities

Path parameters

idstring <uuid>Required
Suggestion UUID from opportunity_suggestions.suggestion_id.

Request body

Content type: application/json · schema AcceptOpportunitySuggestionBodyV1

titlestring
min length 1
contact_idstring <uuid>Nullable
owner_idstring <uuid>
mrr_centsinteger
≥ 0
nrr_centsinteger
≥ 0
hardware_centsinteger
≥ 0
currency_codestring
min length 3 · max length 3
expected_close_datestringNullable
pattern /^\d{4}-\d{2}-\d{2}$/
next_actionstring
min length 1
next_action_duestring <date-time>

Response body

Success response 201 · schema OpportunityApiSuccessV1

dataobjectRequired
metaobject

Response codes

201
Operation succeeded.
400
Validation or request parsing failure.
401
API key missing or invalid.
403
RBAC denied for the opportunities resource action.
404
Opportunity or nested resource not found.
409
Opportunity state conflicts with the requested operation.
500
Unexpected controller or service failure.