Skip to content

Update a product base campaign​

PATCH
/campaigns/product-base/{id}

Partially update a product base campaign by its ID. Only the fields included in the request body are updated; omitted fields keep their current value. A field sent as null (or an empty string) is ignored, so a field cannot be cleared through this endpoint. Unknown fields are ignored, and a request with no updatable field is rejected with 422.

The change is made in Teeinblue only: a campaign already published to a store keeps its previous state there until it is synced again. Requires campaigns:write ability.

Authorizations​

bearerAuth

Include Authorization: Bearer <token> header. Token must have the required abilities.

Type
HTTP (bearer)

Parameters​

Path Parameters

id*

Product base campaign ID (e.g., 1245)

Type
string
Required

Request Body​

application/json
JSON
{
  
"internal_tags": "DONE"
}

Responses​

Product base campaign updated

application/json
JSON
{
  
"id": 1234567890,
  
"name": "My Product Base Campaign",
  
"product_tags": "spring,sale",
  
"vendor": "Acme",
  
"product_type": "T-Shirt",
  
"product_display_type": "grid",
  
"label_available_product": "Choose a product",
  
"internal_tags": "DONE",
  
"status": 1,
  
"created_at": "2025-01-15T10:30:00Z",
  
"updated_at": "2025-01-15T10:30:00Z",
  
"artworks": [
  
  
{
  
  
  
"id": 1234567890,
  
  
  
"name": "My Artwork",
  
  
  
"description": "My Artwork Description",
  
  
  
"width": 1000,
  
  
  
"height": 1000,
  
  
  
"thumbnail": "https://cdn.teeinblue.com/examples/platform-mockups/thumbnail.webp",
  
  
  
"status": 1,
  
  
  
"position": 1,
  
  
  
"platform_variants_id": [
  
  
  
  
1234567890,
  
  
  
  
1234567891
  
  
  
]
  
  
}
  
],
  
"mockups": [
  
  
{
  
  
  
"id": 1234567890,
  
  
  
"width": 1000,
  
  
  
"height": 1000,
  
  
  
"position": 1,
  
  
  
"preview_url": "https://cdn.teeinblue.com/examples/platform-mockups/preview.png",
  
  
  
"preview_thumbnail": "https://cdn.teeinblue.com/examples/platform-mockups/thumbnail.webp"
  
  
}
  
]
}

Samples​

Powered by VitePress OpenAPI

Teeinblue API documentation.