Create Asset

This endpoint creates and returns the details of an asset.

Request

POST https://v2.api.uberflip.com/assets
Body Parameters Type Description
hub_id Integer The hub identifier
url String The asset URL

Response

Body Parameters Type Description
id Integer The asset identifier
hub_id Integer The hub identifier
original_filename String The asset filename
url String The asset URL
created_at Date The date the asset was created
modified_at Date The date the asset was modified

Examples

curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer [Token]" -d "{ \
        \"hub_id\": 24601, \
        \"url\": \"http://images.clipartpanda.com/cute-hub.png\" }" \
-i https://v2.api.uberflip.com/assets

Sample response:

HTTP/1.1 201 CREATED
Content-Type: application/json

{
    "id": 83,
    "hub_id": 24601,
    "original_filename": "cute-hub.png",
    "url": "http://content.cdntwrk.com/files/aHViPTMxNCZjbWQ9aXRlbWVkaXRvcmltYWdlJmZpbGVuYW1lPWl0ZW1lZGl0b3JpbWFnZV81M2E4NmRiZDJmYzhlLnBuZyZ2ZXJzaW9uPTAwMDAmc2lnPWY1Y2JjMmY5NTRjN2E4OGVjOTYzY2UyM2QyNDU3MTg1",
    "created_at": "2014-06-23T14:11:09-0400",
    "modified_at": "2014-06-23T14:11:09-0400"
}