Recordari
← Volver al listado
PATCH/api/v1/mitto/campaigns/{id}

Actualizar una campaña

Solo cambian los campos enviados. Requiere una clave API con el alcance 'campaigns:write'.

Autenticación

Envía tu API key en el header x-api-key header.

x-api-keybearer

Parámetros

idobligatorio

path · string

ID de la campaña

Cuerpo de la petición

obligatorio

PublicMittoUpdateCampaignDto

name

string

goal

string

What the campaign is after, in plain language; the AI writes with it

autopilot

boolean

The AI plans steps and timing per prospect; `steps` is ignored

channels

PublicMittoCampaignChannelsDto

Channels the autopilot may use

segmentIds

array<string (uuid)>

Segments whose members the campaign contacts

listIds

array<string (uuid)>

Lists whose members it also contacts

meetingLink

string

Booking page (http/s). Required to launch with email.

handOffOnPositiveReply

boolean

Autopilot: a positive reply goes to a teammate instead of the agent

enrollmentMode

string

'continuous': people who join its segments later join the active campaign too

one_timecontinuous
excludePreviouslyContacted

boolean

Skip people who are or were in another campaign

brandVoiceId

object (uuid)

Null or left out: the default brand voice

domainId

object (uuid)

Sending domain for the emails

voiceAgentId

object (uuid)

Voice agent for the calls

steps

array<PublicMittoSequenceStepDto>

Manual sequence, up to 30 steps, each with its own unique id: email (subject, body), call, wait (days) or task (note).

Ejemplo de petición

json
{
  "name": "CFOs logística Q1",
  "goal": "Agendar una demo de 20 minutos",
  "autopilot": false,
  "channels": {
    "email": false,
    "call": false
  },
  "segmentIds": [
    ""
  ],
  "listIds": [
    ""
  ],
  "meetingLink": "https://cal.com/acme/demo",
  "handOffOnPositiveReply": true,
  "enrollmentMode": "one_time",
  "excludePreviouslyContacted": true,
  "brandVoiceId": null,
  "domainId": null,
  "voiceAgentId": null,
  "steps": [
    {
      "id": "step-1",
      "type": "email",
      "subject": "{{first_name}}, una idea para {{company}}",
      "body": "Hola {{first_name}}…"
    },
    {
      "id": "step-2",
      "type": "wait",
      "days": 3
    },
    {
      "id": "step-3",
      "type": "call",
      "voiceAgentId": null
    }
  ]
}

Respuestas

200

PublicMittoCampaignResponseDto

statusCoderequired

number

countrequired

number

errorrequired

string

datarequired

PublicMittoCampaignDto

Ejemplo de respuesta

json
{
  "statusCode": 200,
  "count": 0,
  "error": null,
  "data": {
    "id": "",
    "name": "",
    "goal": "",
    "template": "email",
    "status": "draft",
    "autopilot": false,
    "channels": {
      "email": false,
      "call": false
    },
    "segmentIds": [
      ""
    ],
    "listIds": [
      ""
    ],
    "meetingLink": "",
    "handOffOnPositiveReply": false,
    "enrollmentMode": "one_time",
    "excludePreviouslyContacted": false,
    "brandVoiceId": null,
    "domainId": null,
    "voiceAgentId": null,
    "steps": [
      {
        "id": "",
        "type": "email",
        "subject": "",
        "body": "",
        "voiceAgentId": null,
        "days": 0,
        "note": ""
      }
    ],
    "startsAt": "2026-01-15T10:00:00.000Z",
    "stats": {
      "prospects": 0,
      "contacted": 0,
      "emailsSent": 0,
      "calls": 0,
      "replies": 0,
      "meetings": 0
    },
    "updatedAt": "2026-01-15T10:00:00.000Z"
  }
}
400Parámetros o cuerpo no válidos
401Clave API o token Bearer faltante o no válido
403La credencial carece del alcance 'campaigns:write', o la organización no tiene facturación por créditos (Mitto)
404No encontrado en su organización