---
title: "Edit welcomes or branding on many gift links"
method: POST
path: "/campaigns/{id}/gift-links/message"
tags: ["Gift links"]
---

# Edit welcomes or branding on many gift links

`POST /campaigns/{id}/gift-links/message`

## Request

- Base URL: `https://gtmswag.com/api/v1`
- URL: `https://gtmswag.com/api/v1/campaigns/{id}/gift-links/message`
- Auth: HTTP bearer

Up to 25 unused links of one campaign at once, each with its current `generation` and `expectedMessageVersion`. Omitting `message` keeps each link's own welcome. All-or-nothing. Does not change printed notes or send email.

## Path parameters

- `id` string, required

## Request body

- object
  - `message` string: Link welcome message; empty restores default. Not the printed note.
  - `branding` GiftLinkBranding: Recipient-facing sender details. Omit to preserve; applies to all selected links.
    - `senderName` string, required: Gift sender's name.
    - `senderCompany` string, required: Gift sender's company.
    - `contactEmail` union: An email address, or an empty string for none. Both variants are strings, so the union has no discriminator.
      - ''
      - string, email
    - `logoAssetId` string: Owned PNG/JPEG/WebP logo asset ID; empty hides it. Never a recipient portrait.
  - `links` object[], required: Up to 25 links, with current generation/message versions.
    - `generation` integer, required: The gift link's current generation.
    - `expectedMessageVersion` integer, required: The gift link's current messageVersion.
    - `sendId` string, required: Send ID (send_): one gift (send), not a campaign.

## Response `200`

Success: `{"data": [GiftLink]}`.

- GiftLinkListResponse: The success body: `{"data": [GiftLink]}`.
  - `data` GiftLink[], required
    - `sendId` string, required
    - `recipient` Recipient, required
      - `recipientId` string, required
      - `name` string, required
      - `email` string, required
      - `company` string, required
      - `sourceSystem` string
      - `externalId` string
      - `profileUrl` string
      - `importId` string
      - `importRowId` string
      - `addressMode` 'known' | 'confirm'
    - `generation` integer, required
    - `messageVersion` integer, required
    - `state` 'unclaimed' | 'redeemed' | 'revoked' | 'expired' | 'declined' | 'cancelled', required
    - `canRegift` boolean, required
    - `valueCents` integer, required

## Other responses

- `400`: Bad request: `VALIDATION_ERROR`, `INVALID_REQUEST`, `MESSAGE_TOO_LONG`, `INVALID_JSON`. Each example says when.
- `401`: Not authenticated: `AUTH_REQUIRED`. no credentials, or an OAuth token on a route that only takes workspace keys; the key is malformed, unknown or revoked.
- `403`: Forbidden: `ARTWORK_UNAVAILABLE`. Each example says when.
- `404`: Not found: `NOT_FOUND`. Each example says when.
- `409`: Conflict: `GIFT_LINK_CONFLICT`. Each example says when.
- `413`: Request too large: `INVALID_REQUEST`. the body exceeds 1 MiB.
- `415`: Unsupported media type: `INVALID_REQUEST`. Each example says when.
- `429`: Too many requests: `RATE_LIMIT`. more than 240 requests in the current minute for this workspace (REST and MCP share the limit); wait `retryAfterMs`.
- `default`: Any other refusal or failure, such as 403 CSRF (a cross-origin `Origin` header), 403 HTTPS_REQUIRED or 500 INTERNAL_ERROR, with what to do next.

---

[API](https://skmtc.dev/gtmswag/apis/gtm-swag-api.md) · [All operations](https://skmtc.dev/gtmswag/apis/gtm-swag-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gtmswag/apis/gtm-swag-api/revisions/9ff86fa99afe?raw)
