Skip to content

Create a new social template as a digital asset

Request

Create a new social template as a part of the Digital Asset Management (DAM) framework.

Body*/*required

A SocialPostTemplate object that should be created

titlestring
descriptionstring
photosArray of objects
videosArray of strings
typestring
Enum:"POST""OFFER""ALERT""EVENT""QUESTION_AND_ANSWER""REEL""STORY""CAROUSEL"
directoriesArray of strings
urlstring
isStoreLocatorboolean
callToActionsArray of objects
assetobject

DAM Asset Model

curl -i -X POST \
  https://uberall.com/api/social-templates \
  -H 'Content-Type: */*' \
  -d '{
    "title": "string",
    "description": "string",
    "photos": [
      {
        "photo": {},
        "description": "string",
        "redirectUrl": "string"
      }
    ],
    "videos": [
      "string"
    ],
    "type": "POST",
    "directories": [
      "string"
    ],
    "url": "string",
    "isStoreLocator": true,
    "callToActions": [
      {
        "url": "string",
        "type": "CALL",
        "directory": "FACEBOOK"
      }
    ],
    "asset": {
      "name": "string",
      "description": "string",
      "type": "string",
      "status": "string",
      "startDate": "string",
      "endDate": "string",
      "allManagedResources": true,
      "locationIds": [
        0
      ],
      "businessIds": [
        0
      ],
      "excludedLocationIds": [
        0
      ],
      "labels": [
        "string"
      ],
      "locationGroupIds": [
        0
      ],
      "folderId": 0
    }
  }'

Responses

Social Template created

Body*/*
statusstringrequired
Enum:"SUCCESS""PENDING""QUOTA_LIMIT_EXCEED""NOT_AUTHORIZED""FORBIDDEN""BAD_ACCESS_TOKEN""BAD_PRIVATE_KEY""BAD_PUBLIC_KEY""MISSING_PARAMETER""INVALID_PARAMETER"
messagestring

(optional) Holds further information about the response

warningsArray of strings

(optional) Holds further warnings

responseobjectrequired

The actual response object of the response

Response
{
  "status": "SUCCESS",
  "message": "string",
  "warnings": [
    "string"
  ],
  "response": {
    "socialPostTemplate": {
      "title": "string",
      "description": "string",
      "url": "string",
      "type": "POST",
      "alertType": "COVID_19",
      "id": 0,
      "shared": true,
      "isStoreLocator": true,
      "callToActions": [
        {
          "url": "string",
          "type": "CALL",
          "directory": "FACEBOOK"
        }
      ],
      "asset": {
        "id": 0,
        "name": "string",
        "description": "string",
        "dateCreated": "2019-08-24T14:15:22Z",
        "dateUpdated": "2019-08-24T14:15:22Z",
        "status": "VISIBLE",
        "type": "AD_TEMPLATE",
        "authorId": 0,
        "folderId": 0,
        "locationIds": [
          0
        ],
        "businessIds": [
          0
        ],
        "excludedLocationIds": [
          0
        ],
        "labels": [
          "string"
        ]
      },
      "videos": [
        "string"
      ],
      "directories": [
        "FOURSQUARE"
      ],
      "ownerId": 0,
      "ownerName": "string",
      "userId": 0,
      "photos": [
        {
          "photo": {},
          "description": "string",
          "redirectUrl": "string"
        }
      ]
    }
  }
}