I'm getting an error creating a quote based on an opportunity. I've shared the headers and request body I'm sending in Postman.
Request url: {organization_url}/api/data/v9.2/quotes
HTTP request method: POST
Headers:
'Content-Type': 'application/json; charset=utf-8',
'OData-MaxVersion': '4.0',
'OData-Version': '4.0',
Accept: 'application/json',
Authorization: 'Bearer' + {accesstoken}
Request Body (in Postman):
{
"name": "OPP-0007514",
"totalamount": 123,
"_owningbusinessunit_value":"304*****-39a4-e***-a89b-00******ac12",
"opportunityid@odata.bind": "/opportunities(a34*****-9abe-4***-9139-58*****7a747)"
}
Removing "_owningbusinessunit_value" key from the body gives an error: "The owner was not provided", So I've added that in the body.