Skip to main content

Template processing

So now we have access_token from previous article we should add it to the request headers and we can do template processings

Request

The endpoint for image processing https://api.pritset.com/api/template/process/{templateId}

ParameterValue
templateIdId of template got from templates table

Headers

ParameterValue
AuthorizationBearer {access_token}
Content-Typeapplication/json
X-Application-KeyKey from application overview

Body

Should be a json plain object or array.

Example

Lets assume that we have this object:

{
"allFilms": {
"films": [
{
"title": "The Empire Strikes Back",
"releaseDate": "1980-05-17"
},
{
"title": "Return of the Jedi",
"releaseDate": "1983-05-25"
},
{
"title": "The Phantom Menace",
"releaseDate": "1999-05-19"
},
{
"title": "Attack of the Clones",
"releaseDate": "2002-05-16"
},
{
"title": "Revenge of the Sith",
"releaseDate": "2005-05-19"
},
{
"title": "Revenge of the Sith 2",
"releaseDate": "2005-05-19"
},
{
"title": "Revenge of the Sith 3",
"releaseDate": "2005-05-19"
}
]
}
}

Lets assume we have a document that looks like this:

Alt text

And the result will be:

Alt text