Developer Hub
cURL
curl --request PUT \ --url https://api.plazbot.com/api/opportunity \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-workspace-id: <x-workspace-id>' \ --data ' { "name": "<string>", "description": "<string>", "amount": 123, "stageId": "<string>", "contactId": "<string>", "customFields": [ { "name": "<string>", "value": "<string>" } ] } '
{ "success": true, "code": 123, "errorCode": "<string>", "message": "<string>", "data": { "id": "<string>", "opportunity": { "id": "<string>", "opportCode": "<string>", "opportStatus": 123, "winLossStatus": 123, "winLossDate": "2023-11-07T05:31:56Z", "finalAmount": 123, "creationDate": "2023-11-07T05:31:56Z", "creationTypeId": 123, "updatedDate": "2023-11-07T05:31:56Z", "deletionDate": "2023-11-07T05:31:56Z", "userDeletion": "<string>", "statusId": 123, "files": [ "<string>" ], "orderInCards": 123, "orderInCardsLastUpdated": "2023-11-07T05:31:56Z", "activities": [ "<string>" ], "segmentationId": "<string>", "workspaceId": "<string>", "name": "<string>", "description": "<string>", "amount": 123, "userCreation": "<string>", "contactId": "<string>", "expirationDate": "2023-11-07T05:31:56Z", "assignedAgentId": "<string>", "stageId": "<string>", "customFields": [ { "name": "<string>", "value": "<string>" } ] } } }
Servicio para actualizar los campos de una oportunidad existente.
Token de autenticacion Bearer. Obtenga el token usando el endpoint /api/user/login
Identificador del workspace
ID de la oportunidad a actualizar
Nombre de la oportunidad
Descripcion de la oportunidad
Monto de la oportunidad
ID de la fase
ID del contacto asociado
Campos personalizados
Show child attributes
Oportunidad actualizada exitosamente
Indica si la operacion fue exitosa
Codigo HTTP de la respuesta
Codigo de error, null si no hay error
Mensaje descriptivo del resultado