---
title: "Update Campaign"
method: PUT
path: "/campaign/{campaign_id}"
tags: ["Campaign"]
---

# Update Campaign

`PUT /campaign/{campaign_id}`

Updates the Campaign with the given `id`. The provided fields will be updated, the rest will remain unchanged except for `designId` and `badgeId`. Those fields can be set to `null`.

Details for the body of the request:

- `title` Campaign title
- `mailBody` Campaign mail body
- `fromName` Campaign mail sender name
- `fromAddress` Campaign mail sender email address
- `emailTemplateId` the Id of the EmailTemplate which is going to be linked to the Campaign
- `designId` the Id of the certificate Design which is going to be linked to the Campaign
- `badgeId` the Id of the badge Design which is going to be linked to the Campaign
- `detailId` the Id of the Detail which is going to be linked to the Campaign

## Path parameters

- `campaign_id` string, required

## Headers

- `api-version` string, required

## Request body

- CampaignRequest
  - `title` string
  - `detailId` string
  - `badgeId` string, nullable
  - `designId` string, nullable
  - `emailTemplateId` string
  - `emailFromName` string
  - `emailSubject` string
  - `emailfromAddress` string, nullable
  - `privateCampaign` boolean

## Response `200`

Successful response

- ApiResponse
  - `message` string, nullable
  - `hasError` boolean
  - `validationErrors` string[]
  - `data` unknown
  - `content` unknown

---

[API](https://skmtc.net/sertifier/apis/sertifier-credential-api-documentation.md) · [All operations](https://skmtc.net/sertifier/apis/sertifier-credential-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sertifier/sertifier-credential-api-documentation/revisions/98c494325aae/schema)
