Autotask icon

Autotask

Work with Autotask PSA REST API resources

Actions125

Opportunity → Update Opportunity

AI-generated

Summary

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"}

Links

Discussion