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: 24e7ca1f-d601-476e-b9d4-025702e39fb4
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": "bcc9eb67-96a6-46df-8920-014ebc347212",
      "brand": "24e7ca1f-d601-476e-b9d4-025702e39fb4",
      "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
      "template_instance": {
        "id": "f1ba5247-9faa-4df9-ac28-c31f179912c8",
        "created_at": 1774173556.047651,
        "html": "<div>fakeTemplateInstance</div>",
        "file": {
          "id": "6156943e-59c1-4418-a580-50dd8f5da46b",
          "created_at": 1774173556.557761,
          "updated_at": 1774173556.557761,
          "deleted_at": null,
          "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
          "path": "templates/instances/c996a1b0-25d5-11f1-83ca-c9fd0d26db3c.png",
          "name": "image.png",
          "public": true,
          "type": "file",
          "url": "https://test.cloudfront.net/templates/instances/c996a1b0-25d5-11f1-83ca-c9fd0d26db3c.png",
          "preview_url": "https://test.cloudfront.net/templates/instances/c996a1b0-25d5-11f1-83ca-c9fd0d26db3c.png",
          "mime": "image/png"
        },
        "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
        "branch": "http://mock-branch-url",
        "updated_at": 1774173556.047651,
        "deleted_at": null,
        "type": "template_instance"
      },
      "type": "print_campaign",
      "created_at": 1774173556.642578,
      "updated_at": 1774173556.642579,
      "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: 24e7ca1f-d601-476e-b9d4-025702e39fb4
associations
string (required) Example: print_campaign.template_instance
Request
HideShow
Body
{
  "templateInstance": "f1ba5247-9faa-4df9-ac28-c31f179912c8"
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "bcc9eb67-96a6-46df-8920-014ebc347212",
    "brand": "24e7ca1f-d601-476e-b9d4-025702e39fb4",
    "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
    "template_instance": {
      "id": "f1ba5247-9faa-4df9-ac28-c31f179912c8",
      "created_at": 1774173556.047651,
      "html": "<div>fakeTemplateInstance</div>",
      "file": {
        "id": "6156943e-59c1-4418-a580-50dd8f5da46b",
        "created_at": 1774173556.557761,
        "updated_at": 1774173556.557761,
        "deleted_at": null,
        "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
        "path": "templates/instances/c996a1b0-25d5-11f1-83ca-c9fd0d26db3c.png",
        "name": "image.png",
        "public": true,
        "type": "file",
        "url": "https://test.cloudfront.net/templates/instances/c996a1b0-25d5-11f1-83ca-c9fd0d26db3c.png",
        "preview_url": "https://test.cloudfront.net/templates/instances/c996a1b0-25d5-11f1-83ca-c9fd0d26db3c.png",
        "mime": "image/png"
      },
      "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
      "branch": "http://mock-branch-url",
      "updated_at": 1774173556.047651,
      "deleted_at": null,
      "type": "template_instance"
    },
    "type": "print_campaign",
    "created_at": 1774173556.642578,
    "updated_at": 1774173556.642579,
    "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: 24e7ca1f-d601-476e-b9d4-025702e39fb4
id
string (required) Example: bcc9eb67-96a6-46df-8920-014ebc347212
Request
HideShow
Body
{
  "templateInstance": "7a00f7f7-16d2-483d-90bd-1256dc50cee7"
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "bcc9eb67-96a6-46df-8920-014ebc347212",
    "brand": "24e7ca1f-d601-476e-b9d4-025702e39fb4",
    "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
    "template_instance": {
      "id": "7a00f7f7-16d2-483d-90bd-1256dc50cee7",
      "created_at": 1774173556.047651,
      "html": "<div>fake2TemplateInstance</div>",
      "file": {
        "id": "35100722-5655-44a5-9927-83b81be0a965",
        "created_at": 1774173556.77859,
        "updated_at": 1774173556.77859,
        "deleted_at": null,
        "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
        "path": "templates/instances/c9b85a80-25d5-11f1-83ca-c9fd0d26db3c.png",
        "name": "image.png",
        "public": true,
        "type": "file",
        "url": "https://test.cloudfront.net/templates/instances/c9b85a80-25d5-11f1-83ca-c9fd0d26db3c.png",
        "preview_url": "https://test.cloudfront.net/templates/instances/c9b85a80-25d5-11f1-83ca-c9fd0d26db3c.png",
        "mime": "image/png"
      },
      "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
      "branch": "http://mock-branch-url",
      "updated_at": 1774173556.047651,
      "deleted_at": null,
      "type": "template_instance"
    },
    "type": "print_campaign",
    "created_at": 1774173556.642578,
    "updated_at": 1774173556.872053,
    "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: 24e7ca1f-d601-476e-b9d4-025702e39fb4
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: 24e7ca1f-d601-476e-b9d4-025702e39fb4
id
string (required) Example: bcc9eb67-96a6-46df-8920-014ebc347212
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "bcc9eb67-96a6-46df-8920-014ebc347212",
    "brand": "24e7ca1f-d601-476e-b9d4-025702e39fb4",
    "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
    "type": "print_campaign",
    "created_at": 1774173556.642578,
    "updated_at": 1774173556.872053,
    "deleted_at": null
  }
}

Generated by aglio on 22 Mar 2026