PUT api/2.0/crm/opportunity/{opportunityid}/stage/{id} This function requires authentication

Description

Updates the selected opportunity to the stage with the ID specified in the request.

Parameters
Name Description Type Example
opportunityid
sent in url
Opportunity ID number 1234
stageid
sent in body
New opportunity stage ID number 1234
Example
PUT api/2.0/crm/opportunity/1234/stage/{id}
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json

{
  "stageid": 1234
}
Returns

Opportunity with the updated stage

Example Response

application/json

{
  "status": 0,
  "response": {
    "id": 1234
  }
}

text/xml

<result>
  <status>0</status>
  <response>
    <id>1234</id>
  </response>
</result>