Skip to content

Update a platform base campaign​

PATCH
/campaigns/platform-base/{id}

Partially update a platform 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*

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

Type
string
Required

Request Body​

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

Responses​

Platform base campaign updated

application/json
JSON
{
  
"id": 1234567890,
  
"uuid": "6d823e4d-8f21-41f8-b461-e97c981880bc",
  
"instance_id": 1234567890,
  
"domain": "my-shop.myshopify.com",
  
"platform_domain": "my-shop.myshopify.com",
  
"platform": "shopify",
  
"platform_linked_id": 1234567890,
  
"name": "My Campaign",
  
"internal_tags": "DONE",
  
"preview_url": "https://cdn.teeinblue.com/examples/platform-mockups/preview.png",
  
"preview_thumbnail": "https://cdn.teeinblue.com/examples/platform-mockups/thumbnail.webp",
  
"version": 1,
  
"enable_artwork_variant_assignment": true,
  
"published_at": "2025-01-15T10:30:00Z",
  
"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,
  
  
  
"platform_variants_id": [
  
  
  
  
1234567890,
  
  
  
  
1234567891
  
  
  
],
  
  
  
"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.