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/passes/:passTypeIdentifier/:serialNumber/images/:type/:resolution

Example Request

Request

POST https://api.passslot.com/v1/passes/pass.example.id1/27f145d2-5713-4a8d-af64-b269f95ade3b/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