Updates a file with a specified ID.
Note: Files can only be uploaded by POST request. For more information, see the Create a file operation.
File resource.
Source of the file.
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/files/{id}
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/files/{id}
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/files/{id}
- SecretApiKey
- JWT
curl -i -X PUT \
'https://www.rebilly.com/_mock/catalog/all/files/{id}' \
-H 'Content-Type: application/json' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE' \
-d '{
"name": "string",
"extension": "string",
"description": "string",
"sourceType": "upload",
"tags": [
"string"
],
"isPublic": true
}'File updated.
Total number of rate limit tokens for this request within a rate limit period. For more information, see Rate limits.
Source of the file.
MIME type of the file.
Collection of EXIF tags contained in the image metadata. This field is applicable to images only.
{ "FileSize": 120, "Software": "GIMP 2.4.5" }
Date and time when the resource is created. This value is set automatically when the resource is created.
Date and time when the resource is updated. This value is set automatically when the resource is updated.
Specifies if the file is available publicly without authentication. If this value is true, the permalink in the _links section contains the public URL.
{ "id": "file_0YV7HZ7KDCC5WBV9Q7WRKG1H6N", "name": "string", "extension": "string", "description": "string", "sourceType": "upload", "tags": [ "string" ], "mime": "image/png", "size": 0, "width": 0, "height": 0, "sha1": "string", "exifData": { "FileSize": 120, "Software": "GIMP 2.4.5" }, "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "isPublic": true, "_links": [ { … } ] }