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: 4d6c8233-9bf4-44cf-90b0-ff8f180bbd39
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": "9982a3d0-0f07-4e91-9242-c66432abec5a",
      "brand": "4d6c8233-9bf4-44cf-90b0-ff8f180bbd39",
      "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
      "template_instance": {
        "id": "2c40c36f-60d4-4dd6-80b1-ae557ef1b805",
        "created_at": 1769132582.300097,
        "html": "<div>fakeTemplateInstance</div>",
        "file": {
          "id": "9f40be79-5a68-4c44-87c2-b3e82716c007",
          "created_at": 1769132582.634058,
          "updated_at": 1769132582.634058,
          "deleted_at": null,
          "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
          "path": "templates/instances/dafd0680-f7fc-11f0-8c7d-09c4c6e349ce.png",
          "name": "image.png",
          "public": true,
          "type": "file",
          "url": "https://test.cloudfront.net/templates/instances/dafd0680-f7fc-11f0-8c7d-09c4c6e349ce.png",
          "preview_url": "https://test.cloudfront.net/templates/instances/dafd0680-f7fc-11f0-8c7d-09c4c6e349ce.png",
          "mime": "image/png"
        },
        "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
        "branch": "http://mock-branch-url",
        "updated_at": 1769132582.300097,
        "deleted_at": null,
        "type": "template_instance"
      },
      "type": "print_campaign",
      "created_at": 1769132582.706987,
      "updated_at": 1769132582.706988,
      "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: 4d6c8233-9bf4-44cf-90b0-ff8f180bbd39
associations
string (required) Example: print_campaign.template_instance
Request
HideShow
Body
{
  "templateInstance": "2c40c36f-60d4-4dd6-80b1-ae557ef1b805"
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "9982a3d0-0f07-4e91-9242-c66432abec5a",
    "brand": "4d6c8233-9bf4-44cf-90b0-ff8f180bbd39",
    "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
    "template_instance": {
      "id": "2c40c36f-60d4-4dd6-80b1-ae557ef1b805",
      "created_at": 1769132582.300097,
      "html": "<div>fakeTemplateInstance</div>",
      "file": {
        "id": "9f40be79-5a68-4c44-87c2-b3e82716c007",
        "created_at": 1769132582.634058,
        "updated_at": 1769132582.634058,
        "deleted_at": null,
        "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
        "path": "templates/instances/dafd0680-f7fc-11f0-8c7d-09c4c6e349ce.png",
        "name": "image.png",
        "public": true,
        "type": "file",
        "url": "https://test.cloudfront.net/templates/instances/dafd0680-f7fc-11f0-8c7d-09c4c6e349ce.png",
        "preview_url": "https://test.cloudfront.net/templates/instances/dafd0680-f7fc-11f0-8c7d-09c4c6e349ce.png",
        "mime": "image/png"
      },
      "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
      "branch": "http://mock-branch-url",
      "updated_at": 1769132582.300097,
      "deleted_at": null,
      "type": "template_instance"
    },
    "type": "print_campaign",
    "created_at": 1769132582.706987,
    "updated_at": 1769132582.706988,
    "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: 4d6c8233-9bf4-44cf-90b0-ff8f180bbd39
id
string (required) Example: 9982a3d0-0f07-4e91-9242-c66432abec5a
Request
HideShow
Body
{
  "templateInstance": "09a742e2-cac3-4066-924a-b8469c362cea"
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "9982a3d0-0f07-4e91-9242-c66432abec5a",
    "brand": "4d6c8233-9bf4-44cf-90b0-ff8f180bbd39",
    "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
    "template_instance": {
      "id": "09a742e2-cac3-4066-924a-b8469c362cea",
      "created_at": 1769132582.300097,
      "html": "<div>fake2TemplateInstance</div>",
      "file": {
        "id": "045a4067-6a6f-4694-b577-b01d5d985e51",
        "created_at": 1769132582.789152,
        "updated_at": 1769132582.789152,
        "deleted_at": null,
        "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
        "path": "templates/instances/db14ad30-f7fc-11f0-8c7d-09c4c6e349ce.png",
        "name": "image.png",
        "public": true,
        "type": "file",
        "url": "https://test.cloudfront.net/templates/instances/db14ad30-f7fc-11f0-8c7d-09c4c6e349ce.png",
        "preview_url": "https://test.cloudfront.net/templates/instances/db14ad30-f7fc-11f0-8c7d-09c4c6e349ce.png",
        "mime": "image/png"
      },
      "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
      "branch": "http://mock-branch-url",
      "updated_at": 1769132582.300097,
      "deleted_at": null,
      "type": "template_instance"
    },
    "type": "print_campaign",
    "created_at": 1769132582.706987,
    "updated_at": 1769132582.857694,
    "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: 4d6c8233-9bf4-44cf-90b0-ff8f180bbd39
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: 4d6c8233-9bf4-44cf-90b0-ff8f180bbd39
id
string (required) Example: 9982a3d0-0f07-4e91-9242-c66432abec5a
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "9982a3d0-0f07-4e91-9242-c66432abec5a",
    "brand": "4d6c8233-9bf4-44cf-90b0-ff8f180bbd39",
    "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
    "type": "print_campaign",
    "created_at": 1769132582.706987,
    "updated_at": 1769132582.857694,
    "deleted_at": null
  }
}

Generated by aglio on 23 Jan 2026