myCRMSIM

myCRMSIM API 1.0

Get Started
​
No token

Update opportunity

PATCH

/api/v1/ext/opportunities/{id}

Change name, value, currency, source, owner, tags or custom fields.

Auth: Bearer access_token
Scope: opportunities.write

To move it to another stage use Move stage; to win, lose or reopen it use Change status. Those run their own workflow triggers.

Parameters

NameInTypeRequiredDescription
id
path
number
yes
Opportunity id.
name
body
stringnoUp to 191 characters.
value
body
numbernoDeal value.
currency
body
stringnoISO currency code.
source
body
stringnoWhere it came from.
owner_id
body
numbernoThe assigned user.
tags
body
array<string>noReplaces the tags.
custom_fields
body
objectnoCustom field values by key.

Responses

StatusWhen
200
OK
400
Nothing to update
401
Missing or invalid token
403
Missing scope
404
Opportunity does not exist or is not owned by the installer
Request
curl -X PATCH "https://backend.mysmsgateway.app/api/v1/ext/opportunities/{id}" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
  "value": 1500
}'
Responses
OK
{
  "success": true,
  "message": "Opportunity updated",
  "data": {
    "id": 55,
    "workspace_id": 7,
    "name": "Website redesign",
    "value": 1500,
    "currency": "USD",
    "status": "open",
    "lost_reason": null,
    "pipeline_id": 3,
    "pipeline": {
      "id": 3,
      "name": "Sales"
    },
    "stage_id": 9,
    "stage": {
      "id": 9,
      "name": "Qualified",
      "color": "#22c55e",
      "position": 1,
      "is_won": false,
      "is_lost": false
    },
    "contact_id": 1234,
    "contact": {
      "id": 1234,
      "first_name": "Ann",
      "last_name": "Lee",
      "email": "ann@example.com",
      "phone_number": "+61412345678",
      "company_name": "Lee Studio"
    },
    "owner_id": null,
    "source": "website",
    "tags": [
      "web"
    ],
    "custom_fields": {},
    "closed_at": null,
    "stage_changed_at": "2026-10-27T09:00:00.000Z",
    "last_activity_at": "2026-10-27T09:00:00.000Z",
    "created_at": "2026-10-27T09:00:00.000Z",
    "updated_at": "2026-10-27T09:00:00.000Z"
  }
}
Try It!
This endpoint needs a bearer token. Open Settings (top right) and paste your access_token.
Path parameters

Opportunity id.

Body (JSON)
Request URL
PATCHhttps://backend.mysmsgateway.app/api/v1/ext/opportunities/%7Bid%7D
Previous

« Create opportunity

Next

Move stage »