Opportunity
put/v2/opportunity/{id}
Request
- Base URL: https://api.abby.fr
- URL: https://api.abby.fr/v2/opportunity/{id}
- Auth: HTTP bearer
Path parameters
idstring required
Request body
Example request
{
"name": "Updated Project Lead",
"description": "Updated description",
"dueDate": "2025-11-26",
"amount": 150000,
"customerId": "507f1f77bcf86cd799439011",
"categoryId": "123e4567-e89b-12d3-a456-426614174000",
"afterRank": "0|hzzzzz:"
}Response
Example response
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": 1700000000,
"name": "New Project Lead",
"description": "Potential client interested in our services",
"dueDate": 1700000000,
"amount": 100000,
"rank": "0|hzzzzz:",
"customerId": "507f1f77bcf86cd799439011",
"categoryId": "123e4567-e89b-12d3-a456-426614174000",
"category": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"companyId": "123e4567-e89b-12d3-a456-426614174000",
"name": "Qualified Leads",
"rank": "0|hzzzzz:",
"showDueDate": true,
"showAmount": true,
"showCustomer": true,
"color": "#6366f1",
"count": 5,
"totalAmount": 15000
},
"customer": {
"deliveryAddressIsSame": true
}
}