PUT
/
blobs
/
{blob_id}
.json
curl -X PUT \
-H "Content-Type: application/json" \
-H "QB-Token: ee0959fe70ddaf8d1a04e8ed6425bdd9f4012bba" \
-d '{  
  "blob":{  
    "name":"apple"
  }
}' \
https://api.quickblox.com/blobs/9715927.json
{
  "blob": {
    "id": 9715867,
    "uid": "9dc0d37c9be34c839ae3bcac4bbaace100",
    "content_type": "image/jpeg",
    "name": "apple",
    "size": 16766,
    "created_at": "2019-09-15T19:40:18Z",
    "updated_at": "2019-09-15T20:35:45Z",
    "blob_status": "complete",
    "set_completed_at": "2019-09-15T20:00:46Z",
    "public": false
  }
}

Recipes

Update a file name, content type or file tag list. You can also update the file content by setting new=1 parameter. Once set, the file is deleted in the cloud storage and a new record is created. Consequently, all file fields, except for the name, are updated in the cloud storage including the uid, size, etc.

Path Parameters

blob_id
integer
required

ID of the file/blob. Generated automatically by the server after file/blob creation.

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 PUT \
-H "Content-Type: application/json" \
-H "QB-Token: ee0959fe70ddaf8d1a04e8ed6425bdd9f4012bba" \
-d '{  
  "blob":{  
    "name":"apple"
  }
}' \
https://api.quickblox.com/blobs/9715927.json
{
  "blob": {
    "id": 9715867,
    "uid": "9dc0d37c9be34c839ae3bcac4bbaace100",
    "content_type": "image/jpeg",
    "name": "apple",
    "size": 16766,
    "created_at": "2019-09-15T19:40:18Z",
    "updated_at": "2019-09-15T20:35:45Z",
    "blob_status": "complete",
    "set_completed_at": "2019-09-15T20:00:46Z",
    "public": false
  }
}