Archive API docs
    Jump to

    Narrow by kind with a prefix — q: queries, m: mutations, t: types, g: guides, f: fields and arguments.

    Input object

    CreateCampaignInput

    Input for the createCampaign mutation.

    Fields

    Object, input and enum types open in place — use + to reveal their fields. A type that is already open above the row stops at a ↻ circular marker, and anything nested past the depth limit links out to its own page instead.

    campaignType CampaignType! required
    What kind of campaign to create. It decides which dates are required and which settings member applies.
    dateEnd DateTime
    End of the campaign's window (UTC), not before dateStart. Required for CREATOR_MONITORING and VETTING_WORKFLOW; omit it on BRAND_MONITORING for an open-ended campaign. On VETTING_WORKFLOW it may not be more than 24 hours from now. Uses the supplied instant at whole-second precision; choose your timezone and day boundaries, then convert to UTC before sending it. Must be between 2000-01-01T00:00:00Z and 2100-01-01T00:00:00Z.
    dateStart DateTime
    Start of the campaign's window (UTC). Required for CREATOR_MONITORING, VETTING_WORKFLOW and BRAND_MONITORING; for CREATOR_MONITORING and VETTING_WORKFLOW, creators added later have their posts pulled back to it. Uses the supplied instant at whole-second precision; choose your timezone and day boundaries, then convert to UTC before sending it. Must be between 2000-01-01T00:00:00Z and 2100-01-01T00:00:00Z.
    externalId String! required
    The caller's key for this campaign, at most 255 characters (surrounding whitespace is trimmed). A workspace holds one campaign per key: sending a key again returns the campaign it first created, as stored (nothing is changed), so a retried request never creates a second campaign. The repeat must carry the dateStart, dateEnd and settings the first request with this key sent (not the campaign's current values, so it still works after updateCampaign); a difference is a userError on that field (["input","dateStart"], ["input","dateEnd"] or ["input","settings",<member>,<field>]).
    name String! required
    Campaign name as shown in Archive. Stored with surrounding whitespace and invisible characters removed and NFC-normalized; that stored form must be unique among the workspace's campaigns of this campaignType (compared exactly, so names differing only in case are distinct). Blank, longer than 255 characters, or holding control or bidirectional text characters is a userError on input.name. Not checked on an externalId replay.
    settings CampaignSettingsInput
    Type-specific options; omit to use the type defaults.