POST
/
blobs.json
curl -X POST \
-H "Content-Type: application/json" \
-H "QB-Token: 2e80acd7f3d9c1e79312e0d1dafd6691ba012bba" \
-d '{  
  "blob":{  
    "content_type":"image/jpeg",
    "name":"museum.jpeg"
  }
}' \
https://api.quickblox.com/blobs.json
{
  "blob": {
    "id": 10070416,
    "uid": "20456a9676674f4ca950d963dfca630e00",
    "content_type": "image/jpeg",
    "name": "test2.jpg",
    "size": null,
    "created_at": "2020-07-29T11:06:31Z",
    "updated_at": "2020-07-29T11:06:31Z",
    "blob_status": null,
    "set_completed_at": null,
    "public": false,
    "account_id": 105726,
    "app_id": 78162,
    "blob_object_access": {
      "id": 10070416,
      "blob_id": 10070416,
      "expires": "2020-07-29T12:06:31Z",
      "object_access_type": "Write",
      "params": "https://api.quickblox.com/blobs/10070416/upload/?acl=authenticated-read&content_type=image%2Fjpeg&expires=2020-07-29%2012%3A06%3A31%20UTC&key=20456a9676674f4ca950d963dfca630e00&policy=OTVhNDNiZDNiMWMxMGZlNDgzMmE1MzEyYzE4MjYyZjI%3D%0A&success_action_status=201&x-amz-algorithm=AWS4-HMAC-SHA256&x-amz-credential=d9edd8e29a9f029549ecf6313c67c676%2F20200729%2Fqbprod%2Fs3%2Faws4_request&x-amz-date=2020211T1206Z&x-amz-signature=84901614d08e3d2d1fbba76dc5378242"
    }
  }
}

Recipe

Body Parameters

blob
object
required

Headers

QB-Token
string
required
A user or application session token. See our Authentication page to learn more about session tokens. Must be used either QB-Token or Authorization.

Responses

curl -X POST \
-H "Content-Type: application/json" \
-H "QB-Token: 2e80acd7f3d9c1e79312e0d1dafd6691ba012bba" \
-d '{  
  "blob":{  
    "content_type":"image/jpeg",
    "name":"museum.jpeg"
  }
}' \
https://api.quickblox.com/blobs.json
{
  "blob": {
    "id": 10070416,
    "uid": "20456a9676674f4ca950d963dfca630e00",
    "content_type": "image/jpeg",
    "name": "test2.jpg",
    "size": null,
    "created_at": "2020-07-29T11:06:31Z",
    "updated_at": "2020-07-29T11:06:31Z",
    "blob_status": null,
    "set_completed_at": null,
    "public": false,
    "account_id": 105726,
    "app_id": 78162,
    "blob_object_access": {
      "id": 10070416,
      "blob_id": 10070416,
      "expires": "2020-07-29T12:06:31Z",
      "object_access_type": "Write",
      "params": "https://api.quickblox.com/blobs/10070416/upload/?acl=authenticated-read&content_type=image%2Fjpeg&expires=2020-07-29%2012%3A06%3A31%20UTC&key=20456a9676674f4ca950d963dfca630e00&policy=OTVhNDNiZDNiMWMxMGZlNDgzMmE1MzEyYzE4MjYyZjI%3D%0A&success_action_status=201&x-amz-algorithm=AWS4-HMAC-SHA256&x-amz-credential=d9edd8e29a9f029549ecf6313c67c676%2F20200729%2Fqbprod%2Fs3%2Faws4_request&x-amz-date=2020211T1206Z&x-amz-signature=84901614d08e3d2d1fbba76dc5378242"
    }
  }
}