Back to top

Print Campaign

Overview

Resource Group

Get Print campaigns of brand

Get Print campaigns of brand
GET/brands/:brand/print-campaigns

brand (uuid) ID of the brand

user (uuid) ID of the user (optional)

mediums (Email’ | ‘Social’ | ‘CrmOpenHouse’ | ‘FacebookCover’ | ‘InstagramStory’ | ‘LinkedInCover’ | ‘Letter’ | ‘Website’ | ‘RealtorCover’ | ‘YouTubeCover’ | ‘TwitterCover’ | ‘BusinessCard’ | ‘PostCard’ | ‘FoldedPostCard’ | ‘Brochure’ | ‘FoldedBrochure’ | ‘Newsletter’ | ‘Legal’ | ‘Flyer’ | 'IndexCard)[] array of medium

start (number) number of rows to skip before starting to return rows

limit (number) limited number of records order (string) eg: +created_at

Example URI

GET /brands/:brand/print-campaigns
URI Parameters
HideShow
brand
string (required) Example: 789110e8-4e8c-45f7-9f98-d28ebbabfa45
mediums
string (required) Example: Social
associations
string (required) Example: print_campaign.template_instance
order
string (required) Example: -created_at
Response  200
HideShow
Body
{
  "code": "OK",
  "data": [
    {
      "id": "91698f7b-7a8a-47aa-9904-93a713bc7ba3",
      "brand": "789110e8-4e8c-45f7-9f98-d28ebbabfa45",
      "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
      "template_instance": {
        "id": "c6076b97-d2f7-4644-bfd8-8d348892a676",
        "created_at": 1760470092.625668,
        "html": "<div>fakeTemplateInstance</div>",
        "file": {
          "id": "46c19052-23bd-4d08-ad83-cca66a82f8e1",
          "created_at": 1760470093.298137,
          "updated_at": 1760470093.298138,
          "deleted_at": null,
          "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
          "path": "templates/instances/ecfd87f0-a933-11f0-bdea-d5cf17ea076e.png",
          "name": "image.png",
          "public": true,
          "type": "file",
          "url": "https://test.cloudfront.net/templates/instances/ecfd87f0-a933-11f0-bdea-d5cf17ea076e.png",
          "preview_url": "https://test.cloudfront.net/templates/instances/ecfd87f0-a933-11f0-bdea-d5cf17ea076e.png",
          "mime": "image/png"
        },
        "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
        "branch": "http://mock-branch-url",
        "updated_at": 1760470092.625668,
        "deleted_at": null,
        "type": "template_instance"
      },
      "type": "print_campaign",
      "created_at": 1760470093.389222,
      "updated_at": 1760470093.389225,
      "deleted_at": null
    }
  ],
  "info": {
    "count": 1,
    "total": 1
  }
}

Create a print campaign

Create a print campaign
POST/brands/:brand/print-campaigns

Example URI

POST /brands/:brand/print-campaigns
URI Parameters
HideShow
brand
string (required) Example: 789110e8-4e8c-45f7-9f98-d28ebbabfa45
associations
string (required) Example: print_campaign.template_instance
Request
HideShow
Body
{
  "templateInstance": "c6076b97-d2f7-4644-bfd8-8d348892a676"
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "91698f7b-7a8a-47aa-9904-93a713bc7ba3",
    "brand": "789110e8-4e8c-45f7-9f98-d28ebbabfa45",
    "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
    "template_instance": {
      "id": "c6076b97-d2f7-4644-bfd8-8d348892a676",
      "created_at": 1760470092.625668,
      "html": "<div>fakeTemplateInstance</div>",
      "file": {
        "id": "46c19052-23bd-4d08-ad83-cca66a82f8e1",
        "created_at": 1760470093.298137,
        "updated_at": 1760470093.298138,
        "deleted_at": null,
        "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
        "path": "templates/instances/ecfd87f0-a933-11f0-bdea-d5cf17ea076e.png",
        "name": "image.png",
        "public": true,
        "type": "file",
        "url": "https://test.cloudfront.net/templates/instances/ecfd87f0-a933-11f0-bdea-d5cf17ea076e.png",
        "preview_url": "https://test.cloudfront.net/templates/instances/ecfd87f0-a933-11f0-bdea-d5cf17ea076e.png",
        "mime": "image/png"
      },
      "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
      "branch": "http://mock-branch-url",
      "updated_at": 1760470092.625668,
      "deleted_at": null,
      "type": "template_instance"
    },
    "type": "print_campaign",
    "created_at": 1760470093.389222,
    "updated_at": 1760470093.389225,
    "deleted_at": null
  }
}

update a print campaign

update a print campaign
PUT/brands/:brand/print-campaigns/:id

Example URI

PUT /brands/:brand/print-campaigns/:id
URI Parameters
HideShow
associations
string (required) Example: print_campaign.template_instance
brand
string (required) Example: 789110e8-4e8c-45f7-9f98-d28ebbabfa45
id
string (required) Example: 91698f7b-7a8a-47aa-9904-93a713bc7ba3
Request
HideShow
Body
{
  "templateInstance": "443cbcc3-230a-4906-971f-45e24bd5932d"
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "91698f7b-7a8a-47aa-9904-93a713bc7ba3",
    "brand": "789110e8-4e8c-45f7-9f98-d28ebbabfa45",
    "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
    "template_instance": {
      "id": "443cbcc3-230a-4906-971f-45e24bd5932d",
      "created_at": 1760470092.625668,
      "html": "<div>fake2TemplateInstance</div>",
      "file": {
        "id": "ded313d6-46b7-4f29-a999-6542927b716f",
        "created_at": 1760470093.500965,
        "updated_at": 1760470093.500965,
        "deleted_at": null,
        "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
        "path": "templates/instances/ed1ca8b0-a933-11f0-bdea-d5cf17ea076e.png",
        "name": "image.png",
        "public": true,
        "type": "file",
        "url": "https://test.cloudfront.net/templates/instances/ed1ca8b0-a933-11f0-bdea-d5cf17ea076e.png",
        "preview_url": "https://test.cloudfront.net/templates/instances/ed1ca8b0-a933-11f0-bdea-d5cf17ea076e.png",
        "mime": "image/png"
      },
      "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
      "branch": "http://mock-branch-url",
      "updated_at": 1760470092.625668,
      "deleted_at": null,
      "type": "template_instance"
    },
    "type": "print_campaign",
    "created_at": 1760470093.389222,
    "updated_at": 1760470093.597738,
    "deleted_at": null
  }
}
Response  204

get single print campaign

get single print campaign
GET/brands/:brand/print-campaigns/stats

brand (uuid) ID of the brand user (uuid) ID of the user (optional)

Example URI

GET /brands/:brand/print-campaigns/stats
URI Parameters
HideShow
brand
string (required) Example: 789110e8-4e8c-45f7-9f98-d28ebbabfa45
Response  200
HideShow
Body
{
  "type": "print_campaign_stats",
  "Social": "1"
}

get single print campaign

get single print campaign
GET/brands/:brand/print-campaigns/:id

Example URI

GET /brands/:brand/print-campaigns/:id
URI Parameters
HideShow
brand
string (required) Example: 789110e8-4e8c-45f7-9f98-d28ebbabfa45
id
string (required) Example: 91698f7b-7a8a-47aa-9904-93a713bc7ba3
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "91698f7b-7a8a-47aa-9904-93a713bc7ba3",
    "brand": "789110e8-4e8c-45f7-9f98-d28ebbabfa45",
    "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
    "type": "print_campaign",
    "created_at": 1760470093.389222,
    "updated_at": 1760470093.597738,
    "deleted_at": null
  }
}

Generated by aglio on 14 Oct 2025