> ## Documentation Index
> Fetch the complete documentation index at: https://docs.creatorcore.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Update an import's mapping or options

> Changes the column mapping (target field → column header; `null` unmaps) and / or options of a `staged` or `previewed` import, then re-runs the preview. Any change issues a new `previewToken`; older tokens stop working.



## OpenAPI

````yaml /openapi.json patch /api/v2/imports/{id}
openapi: 3.2.0
info:
  title: CreatorCore API
  version: 1.0.0-beta
  description: >-
    REST API for CreatorCore organizations.


    Use it to manage creators, campaigns, lists, media kits, tracked channels,
    posts, and sounds, and related resources.


    ## Authentication


    Authenticate with an **organization API key**:


    ```

    Authorization: Bearer cc_live_…

    X-CreatorCore-Organization-Id: <your organization ID>

    ```


    Create keys under **Settings → Integrations → API keys**; your organization
    ID is shown there too. Production keys use the `cc_live_` prefix;
    non-production keys use `cc_test_`.

    The organization ID is not a secret and does not authenticate. It lets your
    API traffic through network protection; requests without it may be blocked
    before they reach the API.

    Each key is scoped to a single organization — every request operates in that
    org's context.


    Browser apps that already have a signed-in session may also authenticate via
    the session cookie.


    ## Start here


    1. `GET /api/v2/creators` — filter the roster. Pass
    `include=rating,birthday,location` (or `include=detail`) for profile fields
    omitted from list rows by default.

    2. `GET /api/v2/creators/{id}` and `GET /api/v2/creators/{id}/analytics` —
    full profile and time series.

    3. `GET /api/v2/posts/browse` and `GET /api/v2/posts/aggregates` —
    performance reporting (needs the Posts feature).

    4. `GET /api/v2/discovery/creator` (also `/channel`, `/post`) — semantic
    search (needs Discovery).

    5. `GET /api/v2/collect/{platform}/…` — live platform fetch (separate
    grants).


    ## Conventions


    - Successful JSON responses use `{ "success": true, … }`.

    - Errors use `{ "success": false, "error": "…", "code": "…" }` with an
    appropriate HTTP status.

    - `403` with code `feature_disabled` means the feature is turned off for the
    organization (API keys included). Nothing is lost; it works again once the
    feature is turned on.

    - `403` with code `organization_deactivated` means the organization has been
    deactivated (API keys and connectors included). Nothing is deleted; every
    request works again once CreatorCore reactivates it. Contact
    support@creatorcore.co.

    - JSON bodies use camelCase. Query parameters use snake_case.

    - File and image fields (media `url`, partner `logo`, campaign `thumbnail`,
    creator `profilePicture`, and similar) are absolute URLs for API-key
    callers, served through this API. Send them back unchanged when you write
    the same field.

    - Collection endpoints that support pagination accept `limit` and `offset`
    and return `total`. Discovery and some collect/story feeds use cursor
    pagination instead.

    - Repeatable query params (for example `include`, `sort`) may be specified
    multiple times. A leading `-` on a `sort` token means descending.

    - Endpoints that return `202` queue work. Poll `GET /api/v2/tasks/{id}` with
    the returned job id. Some campaign refresh endpoints also expose a
    convenience `.../refresh/status` URL.

    - Notification destinations (Slack, email, SMS) deliver to people in the
    product; they are not HTTP callbacks to your server.
servers:
  - url: https://beta.creatorcore.co
    description: Production
security:
  - bearerOrgApiKey: []
    orgIdHeader: []
tags:
  - name: Creators
    description: >-
      Creator profiles on your roster (`/api/v2/creators`): create, filter, and
      read people plus their analytics; start here for anything about a person
      rather than a single social account.
  - name: Creator channels
    description: >-
      Social accounts linked to a creator (`/api/v2/creators/{id}/channels`);
      use these to attach, list, or detach a creator's TikTok, Instagram,
      YouTube, and other profiles.
    parent: Creators
  - name: Creator rate cards
    description: >-
      A creator's prices per deliverable (`/api/v2/creators/{id}/rate-cards`),
      with revision history; use them when quoting or comparing creator costs.
    parent: Creators
  - name: Creator activity and ratings
    description: >-
      Your team's comments, flags, and ratings on a creator
      (`/api/v2/creators/{id}/activity`, `/flags`, `/team-ratings`); use them to
      record internal notes and assessments.
    parent: Creators
  - name: CreatorLink
    description: >-
      Verified account connections (`/api/v2/creator-connects`): run the
      CreatorLink flow from your own app. Mint a connect URL per platform, send
      the creator there, read per-platform connection status, re-sync, and
      disconnect. Create the link with `POST /api/v2/creators/{id}/connect`; see
      the [CreatorLink guide](/guides/creatorlink).
  - name: Channels
    description: >-
      Social accounts your organization tracks (`/api/v2/channels`); import a
      profile by URL, read its stats, and queue a data refresh.
  - name: Posts
    description: >-
      Social posts your organization tracks (`/api/v2/posts`); import posts by
      URL, browse and aggregate their performance, and read metric history.
  - name: Sounds
    description: >-
      Audio tracks your organization tracks (`/api/v2/sounds`), such as TikTok
      sounds; import a sound by URL and read its usage.
  - name: Campaigns
    description: >-
      Influencer campaigns (`/api/v2/campaigns`): create and update campaigns,
      assign managers, tag them, and read the activity feed. Everything inside
      one campaign is in the sub-sections below.
  - name: Campaign activations
    description: >-
      Creators added to a campaign (`/api/v2/campaigns/{cid}/creators`), each
      with its own status, fee, managers, and deliverables; use these to add,
      update, or remove creators in bulk or one at a time.
    parent: Campaigns
  - name: Campaign deliverables
    description: >-
      Content each creator owes on a campaign
      (`/api/v2/campaigns/{cid}/deliverables`) and the campaign's default
      deliverable set; use them to track what is due and link the posts that
      fulfil it.
    parent: Campaigns
  - name: Campaign drafts
    description: >-
      Content drafts submitted for review before posting
      (`/api/v2/campaigns/{cid}/drafts`), with feedback threads.
    parent: Campaigns
  - name: Campaign posts and stories
    description: >-
      Published posts and stories attached to a campaign
      (`/api/v2/campaigns/{cid}/posts`, `/stories`); add, tag, refresh, export,
      and aggregate campaign content.
    parent: Campaigns
  - name: Campaign automation
    description: >-
      Rules that add matching posts to a campaign and tag them automatically
      (`/api/v2/campaigns/{cid}/auto-add-rules`, `/auto-post-tagging`).
    parent: Campaigns
  - name: Campaign documents and briefs
    description: >-
      Files and creative briefs attached to a campaign
      (`/api/v2/campaigns/{cid}/documents`, `/briefs`).
    parent: Campaigns
  - name: Campaign financials
    description: >-
      A campaign's budget view (`/api/v2/campaigns/{cid}/financials`): read
      totals and log pay-ins and off-platform payouts. To actually pay a
      creator, use Payouts.
    parent: Campaigns
  - name: Campaign modules
    description: >-
      Modules enabled on a campaign (`/api/v2/campaigns/{cid}/modules`), from
      system or organization module types.
    parent: Campaigns
  - name: Campaign settings and sharing
    description: >-
      Campaign settings, partner access, and share-link password
      (`/api/v2/campaigns/{cid}/settings`, `/partner`, `/password`); use them to
      configure what a partner sees.
    parent: Campaigns
  - name: Lists
    description: >-
      Creator shortlists (`/api/v2/lists`): build a list, collect partner
      feedback and approvals, and convert it into a campaign.
  - name: Rosters
    description: >-
      Named, ordered groups of creators (`/api/v2/rosters`), such as an agency's
      talent roster; one roster can be marked primary.
  - name: Media kits
    description: >-
      Shareable creator media kits (`/api/v2/media-kits`) with featured posts,
      modules, past collaborations, and rate cards.
  - name: Casting calls
    description: >-
      Open calls for creators (`/api/v2/casting-calls`): draft, publish, invite,
      and close a call. Browse other organizations' public calls here too.
  - name: Casting call applications
    description: >-
      Applications to a casting call: review and approve them as the host, or
      submit and track your own as an applicant.
    parent: Casting calls
  - name: Casting call questions
    description: >-
      Custom questions applicants answer when applying to a casting call
      (`/api/v2/casting-calls/{id}/questions`).
    parent: Casting calls
  - name: Partners
    description: >-
      Brands and clients you run campaigns for (`/api/v2/partners`), including
      their partner-portal access.
  - name: Folders
    description: >-
      Folders that organize lists or campaigns (`/api/v2/folders`), with an
      optional password-protected share link.
  - name: Stories
    description: >-
      Instagram stories captured for your organization (`/api/v2/stories`);
      import, filter, tag, export, and read story statistics.
  - name: Story tags
    description: >-
      Labels you define for stories (`/api/v2/story-tags`); create them here,
      then apply them from Stories.
  - name: Discovery
    description: >-
      Semantic search across creators, channels, and posts
      (`/api/v2/discovery`); use it to find new creators rather than filter your
      own roster.
  - name: Collect
    description: >-
      Live platform fetches by id, username, or URL
      (`/api/v2/collect/{platform}`); use them for fresh data on any account or
      post. API keys need a matching `collect.*` grant.
  - name: Payouts
    description: >-
      Pay creators with a quote-then-pay flow (`/api/v2/pay`): onboard
      recipients, check balances and deposits, quote and send payouts, and
      handle payment requests. Requires the payouts add-on.
  - name: Organization
    description: >-
      The organization your API key belongs to (`/api/v2/org`): its profile,
      tags, activation statuses, and deliverable types. Members, keys, branding,
      and templates are in the sub-sections below.
  - name: Members and roles
    description: >-
      People in your organization, pending invites, and the roles that grant
      permissions (`/api/v2/org/members`, `/invites`, `/roles`).
    parent: Organization
  - name: API keys
    description: >-
      Organization API keys (`/api/v2/org/api-keys`): create, scope, rotate, and
      revoke the keys integrations authenticate with.
    parent: Organization
  - name: Branding
    description: >-
      Logo, colors, and other branding applied to shared pages and emails
      (`/api/v2/org/branding`).
    parent: Organization
  - name: Campaign templates
    description: >-
      Reusable campaign setups and custom-column templates for activations
      (`/api/v2/org/campaign-templates`, `/campaign-metadata-templates`) to
      start new campaigns from.
    parent: Organization
  - name: Imports
    description: >-
      Staged creator and post CSV imports (`/api/v2/imports`): send rows inline
      or upload a file, review the auto-mapping and dry-run preview, then commit
      and poll per-row results. Use for bulk adds; use Creators or Posts for one
      record.
  - name: Media
    description: >-
      Uploaded files (`/api/v2/media`): upload directly or via client upload for
      large files, then reference the returned URL from other resources.
  - name: Integrations
    description: >-
      Connected platform accounts (`/api/v2/integrations`), such as Instagram
      accounts linked through OAuth.
  - name: Public
    description: >-
      Unauthenticated, slug-based access to resources you have shared
      (`/api/v2/public`); the slug or link id acts as the credential, so no API
      key is needed.
  - name: Tasks
    description: >-
      Background jobs (`/api/v2/tasks`); poll `GET /api/v2/tasks/{id}` with the
      job id a `202 Accepted` response returns.
  - name: Utilities
    description: >-
      Helpers that are not tied to one resource (`/api/v2/utilities`): resolve
      social links, proxy images, and manage notifications.
  - name: Notifications
    description: >-
      The notification outbox (`/api/v2/utilities/notifications`): enqueue,
      inspect, cancel, and redeliver notifications, and list the event topics
      you can subscribe to.
    parent: Utilities
  - name: Notification destinations
    description: >-
      Where notifications are delivered
      (`/api/v2/utilities/notifications/destinations`): Slack, email, SMS, or a
      signed webhook endpoint.
    parent: Utilities
  - name: Notification subscriptions
    description: >-
      Which event topics each destination receives
      (`/api/v2/utilities/notifications/subscriptions`).
    parent: Utilities
  - name: Notification preferences
    description: >-
      Your personal per-topic notification settings
      (`/api/v2/utilities/notifications/preferences`).
    parent: Utilities
  - name: Meta
    description: >-
      This API's machine-readable OpenAPI document (`/api/v2/openapi.json`); use
      it to generate clients or give an agent the full API surface.
  - name: Webhooks
    description: >-
      Events CreatorCore sends to your webhook destinations as signed `POST`
      requests: payout status changes, deposits, balance holds, recipient
      onboarding steps, and the test event. Set up destinations and
      subscriptions under Notification destinations and Notification
      subscriptions; see the [webhooks guide](/guides/webhooks) for signature
      verification and retries.
paths:
  /api/v2/imports/{id}:
    patch:
      tags:
        - Imports
      summary: Update an import's mapping or options
      description: >-
        Changes the column mapping (target field → column header; `null` unmaps)
        and / or options of a `staged` or `previewed` import, then re-runs the
        preview. Any change issues a new `previewToken`; older tokens stop
        working.
      operationId: patchImportsById
      parameters:
        - schema:
            type: string
            format: uuid
          required: true
          name: id
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                mapping:
                  type: object
                  additionalProperties:
                    type:
                      - string
                      - 'null'
                  description: >-
                    Target field → source column header. `null` unmaps a field.
                    Fields you leave out keep their auto-detected column.
                options:
                  type: object
                  properties:
                    overwrite:
                      type: boolean
                      description: >-
                        Creators: when a row merges into an existing creator,
                        replace their non-empty email, phone, gender, notes and
                        location with the row's. Default false (fill empty
                        fields only). Nothing is ever deleted.
                    createMissingTags:
                      type: boolean
                      description: >-
                        Create tags named in the file that don't exist yet.
                        Default false for creators, true for posts.
                    addToTarget:
                      type: boolean
                      description: >-
                        List / roster targets: also add creators that already
                        existed (merged rows). Default true.
                  additionalProperties: false
              additionalProperties: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                allOf:
                  - type: object
                    properties:
                      success:
                        type: boolean
                        enum:
                          - true
                    required:
                      - success
                  - type: object
                    properties:
                      import:
                        type: object
                        properties:
                          id:
                            type: string
                            format: uuid
                          kind:
                            type: string
                            enum:
                              - creators
                              - posts
                            description: >-
                              What each row is: a creator (profile URLs /
                              handles) or a post (post URL or content ID +
                              platform).
                          status:
                            type: string
                            enum:
                              - staged
                              - previewed
                              - queued
                              - running
                              - done
                              - failed
                              - cancelled
                          target:
                            type: object
                            properties:
                              type:
                                type: string
                                enum:
                                  - database
                                  - campaign
                                  - list
                                  - roster
                              id:
                                type: string
                                format: uuid
                            required:
                              - type
                          options:
                            type: object
                            additionalProperties: {}
                          source:
                            type: string
                            enum:
                              - inline
                              - upload
                              - app
                          fileName:
                            type:
                              - string
                              - 'null'
                          fileSha256:
                            type:
                              - string
                              - 'null'
                          headers:
                            type: array
                            items:
                              type: string
                          rowCount:
                            type: integer
                          mapping:
                            type: object
                            additionalProperties:
                              type: string
                          mappingConfidence:
                            type: object
                            additionalProperties:
                              type: object
                              properties:
                                column:
                                  type: string
                                confidence:
                                  type: number
                                  minimum: 0
                                  maximum: 1
                                source:
                                  type: string
                                  enum:
                                    - auto
                                    - override
                              required:
                                - column
                                - confidence
                                - source
                          availableFields:
                            type: array
                            items:
                              type: object
                              properties:
                                key:
                                  type: string
                                label:
                                  type: string
                              required:
                                - key
                                - label
                          preview:
                            type:
                              - object
                              - 'null'
                            properties:
                              counts:
                                type: object
                                properties:
                                  create:
                                    type: integer
                                  merge:
                                    type: integer
                                  skip:
                                    type: integer
                                  error:
                                    type: integer
                                required:
                                  - create
                                  - merge
                                  - skip
                                  - error
                              duplicateGroups:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    key:
                                      type: string
                                    rowIndexes:
                                      type: array
                                      items:
                                        type: integer
                                  required:
                                    - key
                                    - rowIndexes
                              attention:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    rowIndex:
                                      type: integer
                                    outcome:
                                      type: string
                                      enum:
                                        - skip
                                        - error
                                    reason:
                                      type: string
                                  required:
                                    - rowIndex
                                    - outcome
                                    - reason
                              estimatedRefreshes:
                                type: integer
                              unmappedHeaders:
                                type: array
                                items:
                                  type: string
                              missingRequired:
                                type: array
                                items:
                                  type: string
                            required:
                              - counts
                              - duplicateGroups
                              - attention
                              - estimatedRefreshes
                              - unmappedHeaders
                              - missingRequired
                          previewToken:
                            type:
                              - string
                              - 'null'
                            description: >-
                              Pass to POST /api/v2/imports/{id}/commit. Null
                              until previewed, and after commit.
                          counts:
                            type:
                              - object
                              - 'null'
                            properties:
                              total:
                                type: integer
                              processed:
                                type: integer
                              succeeded:
                                type: integer
                              failed:
                                type: integer
                              skipped:
                                type: integer
                              duplicate:
                                type: integer
                              addedToTarget:
                                type: integer
                              targetErrors:
                                type: array
                                items:
                                  type: string
                            required:
                              - total
                              - processed
                              - succeeded
                              - failed
                              - skipped
                              - duplicate
                          error:
                            type:
                              - string
                              - 'null'
                          bulkImportId:
                            type:
                              - string
                              - 'null'
                            format: uuid
                          createdAt:
                            type: string
                          previewedAt:
                            type:
                              - string
                              - 'null'
                          committedAt:
                            type:
                              - string
                              - 'null'
                          finishedAt:
                            type:
                              - string
                              - 'null'
                        required:
                          - id
                          - kind
                          - status
                          - target
                          - options
                          - source
                          - fileName
                          - fileSha256
                          - headers
                          - rowCount
                          - mapping
                          - mappingConfidence
                          - availableFields
                          - preview
                          - previewToken
                          - counts
                          - error
                          - bulkImportId
                          - createdAt
                          - previewedAt
                          - committedAt
                          - finishedAt
                    required:
                      - import
        '400':
          $ref: '#/components/schemas/ErrorEnvelope'
        '401':
          $ref: '#/components/schemas/ErrorEnvelope'
        '403':
          $ref: '#/components/schemas/ErrorEnvelope'
        '404':
          $ref: '#/components/schemas/ErrorEnvelope'
        '409':
          $ref: '#/components/schemas/ErrorEnvelope'
        '500':
          $ref: '#/components/schemas/ErrorEnvelope'
components:
  schemas:
    ErrorEnvelope:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: string
        code:
          type: string
        details: {}
      required:
        - success
        - error
        - code
      description: Standard error response (`success`, `error`, `code`)
  securitySchemes:
    bearerOrgApiKey:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Organization API key. Send `Authorization: Bearer <key>`. Keys start
        with `cc_live_` (production) or `cc_test_` (non-production). Create and
        manage keys under Settings → Integrations → API keys. Send it together
        with the `X-CreatorCore-Organization-Id` header.
    orgIdHeader:
      type: apiKey
      in: header
      name: X-CreatorCore-Organization-Id
      description: >-
        Your organization ID (a UUID). Send it with every API-key request. It is
        not a secret and does not authenticate; it lets your API traffic through
        network protection. Find it under Settings → Integrations → API keys.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.