# Update a content import source

You can update an existing content import source.

Endpoint: PUT /ai/content_import_sources/{id}
Version: Preview
Security: bearerAuth

## Path parameters:

  - `id` (string, required)
    The unique identifier for the content import source which is given by Intercom.

## Header parameters:

  - `Intercom-Version` (string)
    Intercom API version.By default, it's equal to the version set in the app package.
    Enum: "1.0", "1.1", "1.2", "1.3", "1.4", "2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6", "2.7", "2.8", "2.9", "2.10", "2.11", "2.12", "2.13", "2.14", "Preview"

## Request fields (application/json):

  - `sync_behavior` (string, required)
    If you intend to create or update External Pages via the API, this should be set to api. You can not change the value to or from api.
    Enum: "api", "automated", "manual"

  - `status` (string)
    The status of the content import source.
    Enum: "active", "deactivated"

  - `url` (string, required)
    The URL of the content import source. This may only be different from the existing value if the sync behavior is API.
    Example: "https://help.example.com"

  - `audience_ids` (any,null)
    The unique identifiers for the audiences to associate with this content import source. Can be a single integer or an array of integers. Set to null or an empty array to remove all audiences.
    Example: [5678]

  - `apply_audience_to_existing_content` (boolean)
    When true, the audience will be applied to all existing external pages belonging to this content import source.

## Response 200 fields (application/json):

  - `type` (string, required)
    Always external_page
    Enum: "content_import_source"

  - `id` (integer, required)
    The unique identifier for the content import source which is given by Intercom.
    Example: 1234

  - `last_synced_at` (integer, required)
    The time when the content import source was last synced.
    Example: 1672928610

  - `sync_behavior` (string, required)
    If you intend to create or update External Pages via the API, this should be set to api.
    Enum: "api", "automatic", "manual"

  - `status` (string, required)
    The status of the content import source.
    Enum: "active", "deactivated"

  - `url` (string, required)
    The URL of the root of the external source.
    Example: "https://help.example.com/"

  - `created_at` (integer, required)
    The time when the content import source was created.
    Example: 1672928359

  - `updated_at` (integer, required)
    The time when the content import source was last updated.
    Example: 1672928610

  - `audience_ids` (array)
    The unique identifiers for the audiences associated with this content import source.
    Example: [5678]

## Response 401 fields (application/json):

  - `type` (string, required)
    The type is error.list
    Example: "error.list"

  - `request_id` (string,null)
    Example: "f93ecfa8-d08a-4325-8694-89aeb89c8f85"

  - `errors` (array, required)
    An array of one or more error objects

  - `errors.code` (string, required)
    A string indicating the kind of error, used to further qualify the HTTP response code
    Example: "unauthorized"

  - `errors.message` (string,null)
    Optional. Human readable description of the error.
    Example: "Access Token Invalid"

  - `errors.field` (string,null)
    Optional. Used to identify a particular field or query parameter that was in error.
    Example: "email"


