Creates or updates the image for the given type and resolution.

NOTE: The image file must have the name image in the multipart form data

Parameters

:type: icon, logo, thumbnail, background, footer, strip
:resolution: normal, high

Resource URL

https://api.passslot.com/v1/templates/:id/images/:type/:resolution

Example Request

Request

POST https://api.passslot.com/v1/templates/1/images/thumbnail/normal

------------------------------330184f75e21
Content-Disposition: form-data; name="image"; filename="icon.png"
Content-Type: application/octet-stream

.PNG
imagedata

Response

{
        "type": "thumbnail",
        "urls": {
            "normal": "http://lh5.ggpht.com/GUv1BNzuC4gghq"
        }
    }

Resource Information

HTTP Method POST
API Version 1
Requires Authentication? Yes
Request Format Multipart Form
Request Object Image File
Response Format JSON
Response Object Pass Image