Last updated 18 days ago
curl -L \ --url 'http://localhost:8080/api/rest/large_object/{largeObjectId}' \ --header 'Authorization: YOUR_API_KEY'
{ "code": "text", "message": "text" }
curl -L \ --request DELETE \ --url 'http://localhost:8080/api/rest/large_object/{largeObjectId}' \ --header 'Authorization: YOUR_API_KEY'
curl -L \ --request POST \ --url 'http://localhost:8080/api/rest/large_object_mp' \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: multipart/form-data' \ --form 'object=[object Object]' \ --form 'metadata=[object Object]'
The MIME type associated with the object.
curl -L \ --request POST \ --url 'http://localhost:8080/api/rest/large_object' \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "mimeType": null, "read": { "wildcard": null, "userIds": [], "profileIds": [] }, "write": { "wildcard": null, "userIds": [], "profileIds": [] }, "delete": { "wildcard": null, "userIds": [], "profileIds": [] } }'
List with image URLs
curl -L \ --request POST \ --url 'http://localhost:8080/api/rest/large_object/from_url' \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "mimeType": null, "read": { "wildcard": null, "userIds": [], "profileIds": [] }, "write": { "wildcard": null, "userIds": [], "profileIds": [] }, "delete": { "wildcard": null, "userIds": [], "profileIds": [] }, "fileUrl": null }'
curl -L \ --request PUT \ --url 'http://localhost:8080/api/rest/large_object/{largeObjectId}' \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "mimeType": null, "read": { "wildcard": null, "userIds": [], "profileIds": [] }, "write": { "wildcard": null, "userIds": [], "profileIds": [] }, "delete": { "wildcard": null, "userIds": [], "profileIds": [] } }'
curl -L \ --request PUT \ --url 'http://localhost:8080/api/rest/large_object/{largeObjectId}/content' \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: */*'