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: f504c5d5-9ea0-4e82-bb51-02b80426a91b
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": "157aee1b-fe27-4343-9ac1-3ee5ad3b2484",
      "brand": "f504c5d5-9ea0-4e82-bb51-02b80426a91b",
      "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
      "template_instance": {
        "id": "46d0afde-a320-4dce-a0dc-b98939f2acae",
        "created_at": 1778872284.950562,
        "html": "<div>fakeTemplateInstance</div>",
        "file": {
          "id": "83530484-b3f3-49d2-8db6-1121b48df44f",
          "created_at": 1778872285.55382,
          "updated_at": 1778872285.553821,
          "deleted_at": null,
          "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
          "path": "templates/instances/de50bff0-5091-11f1-8248-cf8ab660e2ca.png",
          "name": "image.png",
          "public": true,
          "type": "file",
          "url": "https://test.cloudfront.net/templates/instances/de50bff0-5091-11f1-8248-cf8ab660e2ca.png",
          "preview_url": "https://test.cloudfront.net/templates/instances/de50bff0-5091-11f1-8248-cf8ab660e2ca.png",
          "mime": "image/png"
        },
        "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
        "branch": "http://mock-branch-url",
        "updated_at": 1778872284.950562,
        "deleted_at": null,
        "type": "template_instance"
      },
      "type": "print_campaign",
      "created_at": 1778872285.642408,
      "updated_at": 1778872285.642409,
      "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: f504c5d5-9ea0-4e82-bb51-02b80426a91b
associations
string (required) Example: print_campaign.template_instance
Request
HideShow
Body
{
  "templateInstance": "46d0afde-a320-4dce-a0dc-b98939f2acae"
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "157aee1b-fe27-4343-9ac1-3ee5ad3b2484",
    "brand": "f504c5d5-9ea0-4e82-bb51-02b80426a91b",
    "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
    "template_instance": {
      "id": "46d0afde-a320-4dce-a0dc-b98939f2acae",
      "created_at": 1778872284.950562,
      "html": "<div>fakeTemplateInstance</div>",
      "file": {
        "id": "83530484-b3f3-49d2-8db6-1121b48df44f",
        "created_at": 1778872285.55382,
        "updated_at": 1778872285.553821,
        "deleted_at": null,
        "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
        "path": "templates/instances/de50bff0-5091-11f1-8248-cf8ab660e2ca.png",
        "name": "image.png",
        "public": true,
        "type": "file",
        "url": "https://test.cloudfront.net/templates/instances/de50bff0-5091-11f1-8248-cf8ab660e2ca.png",
        "preview_url": "https://test.cloudfront.net/templates/instances/de50bff0-5091-11f1-8248-cf8ab660e2ca.png",
        "mime": "image/png"
      },
      "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
      "branch": "http://mock-branch-url",
      "updated_at": 1778872284.950562,
      "deleted_at": null,
      "type": "template_instance"
    },
    "type": "print_campaign",
    "created_at": 1778872285.642408,
    "updated_at": 1778872285.642409,
    "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: f504c5d5-9ea0-4e82-bb51-02b80426a91b
id
string (required) Example: 157aee1b-fe27-4343-9ac1-3ee5ad3b2484
Request
HideShow
Body
{
  "templateInstance": "9ada429f-547f-43b5-b9a2-1e4ecaf8d90b"
}
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "157aee1b-fe27-4343-9ac1-3ee5ad3b2484",
    "brand": "f504c5d5-9ea0-4e82-bb51-02b80426a91b",
    "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
    "template_instance": {
      "id": "9ada429f-547f-43b5-b9a2-1e4ecaf8d90b",
      "created_at": 1778872284.950562,
      "html": "<div>fake2TemplateInstance</div>",
      "file": {
        "id": "7796dce9-4e3f-44d5-84c4-7162a5f21055",
        "created_at": 1778872285.785079,
        "updated_at": 1778872285.785079,
        "deleted_at": null,
        "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
        "path": "templates/instances/de742670-5091-11f1-8248-cf8ab660e2ca.png",
        "name": "image.png",
        "public": true,
        "type": "file",
        "url": "https://test.cloudfront.net/templates/instances/de742670-5091-11f1-8248-cf8ab660e2ca.png",
        "preview_url": "https://test.cloudfront.net/templates/instances/de742670-5091-11f1-8248-cf8ab660e2ca.png",
        "mime": "image/png"
      },
      "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
      "branch": "http://mock-branch-url",
      "updated_at": 1778872284.950562,
      "deleted_at": null,
      "type": "template_instance"
    },
    "type": "print_campaign",
    "created_at": 1778872285.642408,
    "updated_at": 1778872285.880929,
    "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: f504c5d5-9ea0-4e82-bb51-02b80426a91b
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: f504c5d5-9ea0-4e82-bb51-02b80426a91b
id
string (required) Example: 157aee1b-fe27-4343-9ac1-3ee5ad3b2484
Response  200
HideShow
Body
{
  "code": "OK",
  "data": {
    "id": "157aee1b-fe27-4343-9ac1-3ee5ad3b2484",
    "brand": "f504c5d5-9ea0-4e82-bb51-02b80426a91b",
    "created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
    "type": "print_campaign",
    "created_at": 1778872285.642408,
    "updated_at": 1778872285.880929,
    "deleted_at": null
  }
}

Generated by aglio on 15 May 2026