Upload Image From URL
POST {{baseUrl}}/api/images/
Import an image from a url or data uri.
If you want to upload an image from a file, use the Upload Image From File endpoint instead.
Rate limits:
Burst: 3/s
Steady: 100/m
Scopes:
images:write
Request Body
{"data"=>{"type"=>"image", "attributes"=>{"import_from_url"=>"<string>", "name"=>"<string>", "hidden"=>false}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
revision | string | (Required) API endpoint revision (format: YYYY-MM-DD[.suffix]) | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"data":{"type":"image","id":"\u003cstring\u003e","attributes":{"name":"\u003cstring\u003e","image_url":"\u003cstring\u003e","format":"\u003cstring\u003e","size":"\u003cinteger\u003e","hidden":"\u003cboolean\u003e","updated_at":"\u003cdateTime\u003e"},"links":{"self":"\u003curi\u003e"}}}