---
title: "Creates or updates an attachment on a Campaign Brief."
method: PUT
path: "/tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/attachments/{attachmentId}"
tags: ["TollFreeVerification - CampaignBriefAttachment"]
---

# Creates or updates an attachment on a Campaign Brief.

`PUT /tollfreeVerification/countries/{countryCode}/campaignBriefs/{campaignBriefId}/attachments/{attachmentId}`

## Path parameters

- `countryCode` string, required
- `campaignBriefId` string, uuid, required
- `attachmentId` string, uuid, required

## Query parameters

- `api-version` string, required

## Request body

- CampaignBriefAttachment — A File Attachment for a Campaign Brief
  - `id` string, uuid, required — Campaign Brief Attachment Id.
  - `type` 'optInSmsKeyword' | 'optInIVR' | 'optInPointOfSale' | 'optInWebsite' | 'optInPaperForm' | 'optInOther' | 'optInDescription', required — Attachment type describing the purpose of the attachment e.g. 'callToAction', 'termsOfService'
  - `fileName` string, required — The name of the file being attached e.g. 'myFile01'
  - `fileSizeInBytes` integer — File size in bytes.
  - `fileType` 'png' | 'jpg' | 'jpeg' | 'pdf', required — The type of file being attached e.g. 'pdf', 'jpg', 'png'
  - `fileContentBase64` string, required — File content as base 64 encoded string

## Response `200`

Success

- CampaignBriefAttachment — A File Attachment for a Campaign Brief
  - `id` string, uuid, required — Campaign Brief Attachment Id.
  - `type` 'optInSmsKeyword' | 'optInIVR' | 'optInPointOfSale' | 'optInWebsite' | 'optInPaperForm' | 'optInOther' | 'optInDescription', required — Attachment type describing the purpose of the attachment e.g. 'callToAction', 'termsOfService'
  - `fileName` string, required — The name of the file being attached e.g. 'myFile01'
  - `fileSizeInBytes` integer — File size in bytes.
  - `fileType` 'png' | 'jpg' | 'jpeg' | 'pdf', required — The type of file being attached e.g. 'pdf', 'jpg', 'png'
  - `fileContentBase64` string, required — File content as base 64 encoded string

## Other responses

- `201` — Created
- `default` — Failure

---

[API](https://skmtc.net/azure/apis/toll-free-verification-service.md) · [All operations](https://skmtc.net/azure/apis/toll-free-verification-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/toll-free-verification-service/revisions/ee51ef50444b/schema)
