# Update Campaign

Manage the deletion and "starred" status of a campaign. Each e-mail going through Mailjet is attached to a Campaign. This object is automatically generated by Mailjet. To obtain a valid campaign_ID, first call GET /v3/REST/campaign to list your campaigns.

Endpoint: PUT /v3/REST/campaign/{campaign_ID}
Version: 1.0.0
Security: basicAuth

## Path parameters:

  - `campaign_ID` (integer, required)
    Unique numeric ID of the campaign you want to update.
    Example: 6000

## Request fields (application/json):

  - `IsDeleted` (boolean)
    Indicates whether this campaign is deleted or not.

  - `IsStarred` (boolean)
    Indicates whether this campaign is marked as starred or not.

## Response 200 fields (application/json):

  - `Count` (integer)
    Indicates the number of objects in the Data array.

  - `Data` (array)
    A JSON array containing a list of objects returned by this endpoint.

  - `Data.CampaignType` (integer)
    Type of campaign:

- 1 - Transactional
- 2 - Marketing
- 3 - Unknown

  - `Data.CreatedAt` (string)
    Timestamp indicating when the campaign was created.

  - `Data.CustomValue` (string)
    Custom unique tag for this campaign.

  - `Data.FirstMessageID` (integer)
    Unique numeric ID of the first sent message for this campaign.

  - `Data.FromEmail` (string)
    Sender email address for this campaign.

  - `Data.FromID` (integer)
    Unique numeric ID for the sender email address.

  - `Data.FromName` (string)
    Sender name selected for this campaign.

  - `Data.HasHtmlCount` (integer)
    Indicates whether the emails in this campaign have HTML content (1) or not (0).

  - `Data.HasTxtCount` (integer)
    Indicates whether the emails in this campaign have plain text content (1) or not (0).

  - `Data.ID` (integer)
    Unique numeric ID of this campaign.

  - `Data.ListID` (integer)
    Unique numeric ID of the contact list, to which this campaign was sent.

  - `Data.NewsLetterID` (integer)
    Unique numeric ID of this campaign draft object linked to this campaign.

  - `Data.SegmentationID` (integer)
    Unique numeric ID for the segmentation used for this campaign (see /contactfilter). Returned only if a segmentation is used for the campaign.

  - `Data.SendEndAt` (string)
    Timestamp indicating when last message in this campaign was sent.

  - `Data.SendStartAt` (string)
    Timestamp indicating when first message in this campaign was sent.

  - `Data.SpamassScore` (number)
    SpamAssassin score for this campaign.

  - `Data.Subject` (string)
    Subject line used for the emails in this campaign.

  - `Data.WorkflowID` (integer)
    Unique numeric ID of the automation workflow that triggered this campaign. Returned only if a workflow is used for the campaign.

  - `Data.IsDeleted` (boolean)
    Indicates whether this campaign is deleted or not.

  - `Data.IsStarred` (boolean)
    Indicates whether this campaign is marked as starred or not.

  - `Data.ClickTracked` (integer)
    Indicates whether click tracking has been enabled for this campaign (1) or not (2).

  - `Data.OpenTracked` (integer)
    Indicates whether click tracking has been enabled for this campaign (1) or not (2).

  - `Data.Status` (integer)
    Status of this campaign.

  - `Data.UnsubscribeTrackedCount` (integer)
    Indicates whether unsubscribe tracking has been enabled for this campaign (1) or not (0).

  - `Total` (integer)
    Indicates the number of objects in the Data array.


## Response 400 fields

## Response 401 fields

## Response 403 fields

## Response 404 fields

## Response 429 fields

## Response 500 fields
