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: 4ece7f06-f780-4df0-84c6-f053693a1ef6
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": "cec9b99d-e12e-4de1-80d9-350225dcef6a",
      "brand": "4ece7f06-f780-4df0-84c6-f053693a1ef6",
      "created_by": "ce9f6f8b-458e-4a5e-83ac-5c7876abbb4c",
      "template_instance": {
        "id": "9a0ea92d-78bd-45e4-94a1-2782be6b0845",
        "created_at": 1791656535.542977,
        "html": "<div>fakeTemplateInstance</div>",
        "file": {
          "id": "7759a36e-0d95-4cc3-9b6c-eb1316885e6e",
          "created_at": 1791656535.919392,
          "updated_at": 1791656535.919392,
          "deleted_at": null,
          "created_by": "ce9f6f8b-458e-4a5e-83ac-5c7876abbb4c",
          "path": "templates/instances/855578e0-c4d7-11f1-89da-fb554657817f.png",
          "name": "image.png",
          "public": true,
          "type": "file",
          "url": "https://test.cloudfront.net/templates/instances/855578e0-c4d7-11f1-89da-fb554657817f.png",
          "preview_url": "https://test.cloudfront.net/templates/instances/855578e0-c4d7-11f1-89da-fb554657817f.png",
          "mime": "image/png"
        },
        "created_by": "ce9f6f8b-458e-4a5e-83ac-5c7876abbb4c",
        "branch": "http://mock-branch-url",
        "updated_at": 1791656535.542977,
        "deleted_at": null,
        "type": "template_instance"
      },
      "type": "print_campaign",
      "created_at": 1791656535.950151,
      "updated_at": 1791656535.950152,
      "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: 4ece7f06-f780-4df0-84c6-f053693a1ef6
associations
string (required) Example: print_campaign.template_instance
Request
HideShow
Body
{
  "templateInstance": "9a0ea92d-78bd-45e4-94a1-2782be6b0845"
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "cec9b99d-e12e-4de1-80d9-350225dcef6a",
    "brand": "4ece7f06-f780-4df0-84c6-f053693a1ef6",
    "created_by": "ce9f6f8b-458e-4a5e-83ac-5c7876abbb4c",
    "template_instance": {
      "id": "9a0ea92d-78bd-45e4-94a1-2782be6b0845",
      "created_at": 1791656535.542977,
      "html": "<div>fakeTemplateInstance</div>",
      "file": {
        "id": "7759a36e-0d95-4cc3-9b6c-eb1316885e6e",
        "created_at": 1791656535.919392,
        "updated_at": 1791656535.919392,
        "deleted_at": null,
        "created_by": "ce9f6f8b-458e-4a5e-83ac-5c7876abbb4c",
        "path": "templates/instances/855578e0-c4d7-11f1-89da-fb554657817f.png",
        "name": "image.png",
        "public": true,
        "type": "file",
        "url": "https://test.cloudfront.net/templates/instances/855578e0-c4d7-11f1-89da-fb554657817f.png",
        "preview_url": "https://test.cloudfront.net/templates/instances/855578e0-c4d7-11f1-89da-fb554657817f.png",
        "mime": "image/png"
      },
      "created_by": "ce9f6f8b-458e-4a5e-83ac-5c7876abbb4c",
      "branch": "http://mock-branch-url",
      "updated_at": 1791656535.542977,
      "deleted_at": null,
      "type": "template_instance"
    },
    "type": "print_campaign",
    "created_at": 1791656535.950151,
    "updated_at": 1791656535.950152,
    "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: 4ece7f06-f780-4df0-84c6-f053693a1ef6
id
string (required) Example: cec9b99d-e12e-4de1-80d9-350225dcef6a
Request
HideShow
Body
{
  "templateInstance": "519ebf1f-7966-4872-ad71-c24002f0b65a"
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "cec9b99d-e12e-4de1-80d9-350225dcef6a",
    "brand": "4ece7f06-f780-4df0-84c6-f053693a1ef6",
    "created_by": "ce9f6f8b-458e-4a5e-83ac-5c7876abbb4c",
    "template_instance": {
      "id": "519ebf1f-7966-4872-ad71-c24002f0b65a",
      "created_at": 1791656535.542977,
      "html": "<div>fake2TemplateInstance</div>",
      "file": {
        "id": "6baed4a6-e593-410c-9a49-c22cf5e0c1b0",
        "created_at": 1791656536.001856,
        "updated_at": 1791656536.001857,
        "deleted_at": null,
        "created_by": "ce9f6f8b-458e-4a5e-83ac-5c7876abbb4c",
        "path": "templates/instances/85622310-c4d7-11f1-89da-fb554657817f.png",
        "name": "image.png",
        "public": true,
        "type": "file",
        "url": "https://test.cloudfront.net/templates/instances/85622310-c4d7-11f1-89da-fb554657817f.png",
        "preview_url": "https://test.cloudfront.net/templates/instances/85622310-c4d7-11f1-89da-fb554657817f.png",
        "mime": "image/png"
      },
      "created_by": "ce9f6f8b-458e-4a5e-83ac-5c7876abbb4c",
      "branch": "http://mock-branch-url",
      "updated_at": 1791656535.542977,
      "deleted_at": null,
      "type": "template_instance"
    },
    "type": "print_campaign",
    "created_at": 1791656535.950151,
    "updated_at": 1791656536.032985,
    "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: 4ece7f06-f780-4df0-84c6-f053693a1ef6
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: 4ece7f06-f780-4df0-84c6-f053693a1ef6
id
string (required) Example: cec9b99d-e12e-4de1-80d9-350225dcef6a
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "cec9b99d-e12e-4de1-80d9-350225dcef6a",
    "brand": "4ece7f06-f780-4df0-84c6-f053693a1ef6",
    "created_by": "ce9f6f8b-458e-4a5e-83ac-5c7876abbb4c",
    "type": "print_campaign",
    "created_at": 1791656535.950151,
    "updated_at": 1791656536.032985,
    "deleted_at": null
  }
}

Generated by aglio on 10 Oct 2026