Files
Description
This endpoint is used to view or update image files to a stream entry draft media.
Related topics:
Fields
- None, only binairy content.
Permissions
- The specified organization is required to have the interact module enabled.
Read
Endpoint
GET https://api.crowdmanager.io/v2/{organization-id}/files/{resource-id}
Example
Request
GET https://api.crowdmanager.io/v2/500/files/4b2c7aec-0f2c-4b93-8b8e-f34e8c1041e4
Authorization: Basic aaabbbccc111222333
Response
200 OK
-- binary content --
Update
Endpoint
PUT https://api.crowdmanager.io/v2/{organization-id}/files/{resource-id}
Example
Request
PUT https://api.crowdmanager.io/v2/500/files/4b2c7aec-0f2c-4b93-8b8e-f34e8c1041e4 HTTP/1.1
Authorization: Basic aaabbbccc111222333
Content-Type: multipart/form-data; boundary="----=_Part_27_10647243.1426070441283"
------=_Part_27_10647243.1426070441283
Content-Type: image/jpeg; name=file.jpg
Content-Transfer-Encoding: binary
Content-Disposition: form-data; name="file.jpg"; filename="file.jpg"
-- binary content --
------=_Part_27_10647243.1426070441283--
Response
200 OK
-- binary content --