API by router
Website media
List Media
AuthorizationBearer <token>
In: header
Path Parameters
config_idConfig Id
Format
uuidHeader Parameters
X-Api-Key?X-Api-Key
Response Body
curl -X GET "https://loading/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/media" \ -H "X-Api-Key: string"[
{
"alt_text": "string",
"content_type": "string",
"created_at": "2019-08-24T14:15:22Z",
"filename": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"metadata_json": {},
"size_bytes": 0,
"variants": {},
"website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"
}
]{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Upload Media
AuthorizationBearer <token>
In: header
Path Parameters
config_idConfig Id
Format
uuidQuery Parameters
alt_text?Alt Text
Header Parameters
X-Api-Key?X-Api-Key
fileFile
Format
binaryResponse Body
curl -X POST "https://loading/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/media?alt_text=string" \ -H "X-Api-Key: string" \ -F file="string"{
"alt_text": "string",
"content_type": "string",
"created_at": "2019-08-24T14:15:22Z",
"filename": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"metadata_json": {},
"size_bytes": 0,
"variants": {},
"website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Get Media
AuthorizationBearer <token>
In: header
Path Parameters
config_idConfig Id
Format
uuidmedia_idMedia Id
Format
uuidHeader Parameters
X-Api-Key?X-Api-Key
Response Body
curl -X GET "https://loading/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/media/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "X-Api-Key: string"{
"alt_text": "string",
"content_type": "string",
"created_at": "2019-08-24T14:15:22Z",
"filename": "string",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"metadata_json": {},
"size_bytes": 0,
"variants": {},
"website_config_id": "c0aa0662-77a9-4227-8f52-c7a29b8a3ad3"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Delete Media
AuthorizationBearer <token>
In: header
Path Parameters
config_idConfig Id
Format
uuidmedia_idMedia Id
Format
uuidHeader Parameters
X-Api-Key?X-Api-Key
Response Body
curl -X DELETE "https://loading/v1/website/497f6eca-6276-4993-bfeb-53cbbbba6f08/media/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "X-Api-Key: string"Empty
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}