Actions125
- Ticket Actions
- Ticket Note Actions
- Ticket Attachment Actions
- Company Actions
- Company Note Actions
- Company Attachment Actions
- Contact Actions
- Resource (Employee) Actions
- Contract Actions
- Contract Note Actions
- Project Actions
- Project Note Actions
- Task Actions
- Task Note Actions
- Time Entry Actions
- Configuration Item Actions
- Configuration Item Note Actions
- Product Actions
- Opportunity Actions
- Quote Actions
- Quote Item Actions
- Service Call Actions
- Invoice Actions
- Subscription Actions
- Inventory Item Actions
- Purchase Order Actions
- Purchase Order Item Actions
Opportunity → Update Opportunity
AI-generatedSummary
Update an existing Autotask Opportunity record with supplied field values
Inputs
- entityId (required) — Numeric ID of the opportunity.
- payloadJson (required) — Fields to update. The ID field above is automatically merged into the body — Autotask requires the id in the PATCH/PUT body, not the URL.
- requestOptions — Header overrides for the request, such as impersonation resource ID.
Output shape
a single Opportunity record
The response contains the updated record; errors are handled separately.
Examples
Example 1: Update an existing opportunity with ID 12345, changing its stage and amount.
entityId = 12345; payloadJson = {"stage": "Closed Won", "amount": 50000}; requestOptions = {}
Example 2: Update an opportunity while impersonating a different resource.
entityId = 9876; payloadJson = {"title": "New Title"}; requestOptions = {"impersonationResourceId": "11111"}
Example 3: Update an opportunity with extra query parameters.
entityId = 555; payloadJson = {"status": "Active"}; requestOptions = {"impersonationResourceId": "22222"}
