Get the content for a complete File.
This endpoint will return a 302 Redirect to a temporary URL for the content of this file. This endpoint is useful for fetching private content from a file.
Method | URL | Token |
---|---|---|
GET | https://alpha-api.app.net/stream/0/files/{file_id}/content | User |
Name | Description |
---|---|
file_id |
The id of the File to retrieve content for. |
Set the content for an incomplete File. The content type for this request must be the content type of the file you are uploading. This endpoint can optionally accept a header field x-adn-filename
to set the File’s name.
This endpoint could return a 507 Insufficient Storage
error if the user doesn’t have enough space for this file. For more information, see file storage limits.
When successful, this endpoint will return a 204 No Content
response.
Method | URL | Token |
---|---|---|
PUT | https://alpha-api.app.net/stream/0/files/{file_id}/content | User |
Name | Description |
---|---|
file_id |
The id of the File to set content for. |
curl -X PUT -H "Authorization: Bearer <YOUR ACCESS TOKEN>" -H "Content-Type: image/png" \
--data-binary "@filename.png" "https://alpha-api.app.net/stream/0/files/1/content"
204 No Content
Get the content for a derived file of a complete File.
This endpoint will return a 302 Redirect to a temporary URL for the content of this derived file.
Method | URL | Token |
---|---|---|
GET | https://alpha-api.app.net/stream/0/files/{file_id}/content/{derived_file_key} | User |
Name | Description |
---|---|
file_id |
The id of the File to retrieve content for. |
derived_file_key |
The key identifying the derived file you want the content for. |
Set the content for a derived file of an incomplete File. The content type for this request must be the content type of the file you are uploading. This endpoint can optionally accept a header field x-adn-filename
to set the Derived File’s name.
This endpoint could return a 507 Insufficient Storage
error if the user doesn’t have enough space for this derived file. For more information, see file storage limits.
Method | URL | Token |
---|---|---|
PUT | https://alpha-api.app.net/stream/0/files/{file_id}/content/{derived_file_key} | User |
Name | Description |
---|---|
file_id |
The id of the File to set content for. |
derived_file_key |
The key identifying the derived file you want to create. |
curl -X PUT -H "Authorization: Bearer <YOUR ACCESS TOKEN>" -H "Content-Type: image/png" \
--data-binary "@filename.png" "https://alpha-api.app.net/stream/0/files/1/content/thumbnail_png"
204 No Content