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: 76ee3a55-1e52-4755-9580-07a9f1832a2a
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": "b24eb196-d23c-4d22-8c1f-de991b941737",
      "brand": "76ee3a55-1e52-4755-9580-07a9f1832a2a",
      "created_by": "8a2970cf-f16d-416c-af65-7f5b33f26f26",
      "template_instance": {
        "id": "bcf4b0ed-682c-4080-abf9-dab97ab1a4a2",
        "created_at": 1795716941.630967,
        "html": "<div>fakeTemplateInstance</div>",
        "file": {
          "id": "16b3602a-c0be-4512-9247-5dd3cb992e6a",
          "created_at": 1795716941.983364,
          "updated_at": 1795716941.983364,
          "deleted_at": null,
          "created_by": "8a2970cf-f16d-416c-af65-7f5b33f26f26",
          "path": "templates/instances/63f1dbe0-e9c5-11f1-8b13-dff257259151.png",
          "name": "image.png",
          "public": true,
          "type": "file",
          "url": "https://test.cloudfront.net/templates/instances/63f1dbe0-e9c5-11f1-8b13-dff257259151.png",
          "preview_url": "https://test.cloudfront.net/templates/instances/63f1dbe0-e9c5-11f1-8b13-dff257259151.png",
          "mime": "image/png"
        },
        "created_by": "8a2970cf-f16d-416c-af65-7f5b33f26f26",
        "branch": "http://mock-branch-url",
        "updated_at": 1795716941.630967,
        "deleted_at": null,
        "type": "template_instance"
      },
      "type": "print_campaign",
      "created_at": 1795716942.027705,
      "updated_at": 1795716942.027705,
      "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: 76ee3a55-1e52-4755-9580-07a9f1832a2a
associations
string (required) Example: print_campaign.template_instance
Request
HideShow
Body
{
  "templateInstance": "bcf4b0ed-682c-4080-abf9-dab97ab1a4a2"
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "b24eb196-d23c-4d22-8c1f-de991b941737",
    "brand": "76ee3a55-1e52-4755-9580-07a9f1832a2a",
    "created_by": "8a2970cf-f16d-416c-af65-7f5b33f26f26",
    "template_instance": {
      "id": "bcf4b0ed-682c-4080-abf9-dab97ab1a4a2",
      "created_at": 1795716941.630967,
      "html": "<div>fakeTemplateInstance</div>",
      "file": {
        "id": "16b3602a-c0be-4512-9247-5dd3cb992e6a",
        "created_at": 1795716941.983364,
        "updated_at": 1795716941.983364,
        "deleted_at": null,
        "created_by": "8a2970cf-f16d-416c-af65-7f5b33f26f26",
        "path": "templates/instances/63f1dbe0-e9c5-11f1-8b13-dff257259151.png",
        "name": "image.png",
        "public": true,
        "type": "file",
        "url": "https://test.cloudfront.net/templates/instances/63f1dbe0-e9c5-11f1-8b13-dff257259151.png",
        "preview_url": "https://test.cloudfront.net/templates/instances/63f1dbe0-e9c5-11f1-8b13-dff257259151.png",
        "mime": "image/png"
      },
      "created_by": "8a2970cf-f16d-416c-af65-7f5b33f26f26",
      "branch": "http://mock-branch-url",
      "updated_at": 1795716941.630967,
      "deleted_at": null,
      "type": "template_instance"
    },
    "type": "print_campaign",
    "created_at": 1795716942.027705,
    "updated_at": 1795716942.027705,
    "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: 76ee3a55-1e52-4755-9580-07a9f1832a2a
id
string (required) Example: b24eb196-d23c-4d22-8c1f-de991b941737
Request
HideShow
Body
{
  "templateInstance": "89f15328-b4b6-4d90-a06d-0ad071d691cd"
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "b24eb196-d23c-4d22-8c1f-de991b941737",
    "brand": "76ee3a55-1e52-4755-9580-07a9f1832a2a",
    "created_by": "8a2970cf-f16d-416c-af65-7f5b33f26f26",
    "template_instance": {
      "id": "89f15328-b4b6-4d90-a06d-0ad071d691cd",
      "created_at": 1795716941.630967,
      "html": "<div>fake2TemplateInstance</div>",
      "file": {
        "id": "856d2548-c6db-4237-ba54-04b351e6c542",
        "created_at": 1795716942.088054,
        "updated_at": 1795716942.088054,
        "deleted_at": null,
        "created_by": "8a2970cf-f16d-416c-af65-7f5b33f26f26",
        "path": "templates/instances/6401e170-e9c5-11f1-8b13-dff257259151.png",
        "name": "image.png",
        "public": true,
        "type": "file",
        "url": "https://test.cloudfront.net/templates/instances/6401e170-e9c5-11f1-8b13-dff257259151.png",
        "preview_url": "https://test.cloudfront.net/templates/instances/6401e170-e9c5-11f1-8b13-dff257259151.png",
        "mime": "image/png"
      },
      "created_by": "8a2970cf-f16d-416c-af65-7f5b33f26f26",
      "branch": "http://mock-branch-url",
      "updated_at": 1795716941.630967,
      "deleted_at": null,
      "type": "template_instance"
    },
    "type": "print_campaign",
    "created_at": 1795716942.027705,
    "updated_at": 1795716942.13144,
    "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: 76ee3a55-1e52-4755-9580-07a9f1832a2a
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: 76ee3a55-1e52-4755-9580-07a9f1832a2a
id
string (required) Example: b24eb196-d23c-4d22-8c1f-de991b941737
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "b24eb196-d23c-4d22-8c1f-de991b941737",
    "brand": "76ee3a55-1e52-4755-9580-07a9f1832a2a",
    "created_by": "8a2970cf-f16d-416c-af65-7f5b33f26f26",
    "type": "print_campaign",
    "created_at": 1795716942.027705,
    "updated_at": 1795716942.13144,
    "deleted_at": null
  }
}

Generated by aglio on 26 Nov 2026