Skip to main content
POST
/
api
/
opportunity
/
sortOpportunityInCards
Reordenar Oportunidad en Kanban
curl --request POST \
  --url https://api.plazbot.com/api/opportunity/sortOpportunityInCards \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspaceId": "<string>",
  "opportunityId": "<string>",
  "toStageId": "<string>",
  "fromStageId": "<string>",
  "previousOpportunityId": "<string>",
  "postOpportunityId": "<string>"
}
'
{
  "success": true,
  "code": 123,
  "message": "<string>",
  "errorCode": "<string>"
}

Authorizations

Authorization
string
header
required

Token de autenticacion Bearer. Obtenga el token usando el endpoint /api/user/login

Body

application/json
workspaceId
string
required

ID del workspace

opportunityId
string
required

ID de la oportunidad a mover

toStageId
string
required

ID de la etapa de destino

fromStageId
string | null

ID de la etapa de origen

previousOpportunityId
string | null

ID de la oportunidad anterior en la columna

postOpportunityId
string | null

ID de la oportunidad posterior en la columna

Response

Oportunidad reordenada exitosamente