Create Opportunity Work Order
Create a new work order for an opportunity.
Notes:
- `templateId` is required.
- `phaseInstanceId` is optional. The phase does not need to be started to create an opportunity work order.
**Note:** The `/requests` path is an alias for `/opportunities` and will continue to work until users are individually notified and migrated.
Authentication
x-api-keystring
API Key authentication via header
Path parameters
opportunityId
Opportunity identifier
Request
This endpoint expects an object.
templateId
The ID of the work order template to use
phaseInstanceId
Optional. The ID of the phase instance to use. If provided, the phase does not need to be started to create an opportunity work order. You can gather phase instance ids from the get opportunity endpoint.
Response
Work order created successfully
id
Created workflow element (task) identifier
createdAt
updatedAt
description
position
Position within phase
phaseInstanceId
projectId
createdById
