Delete an asset
curl --request DELETE \
--url https://api.protoface.com/v1/assets/{asset_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.protoface.com/v1/assets/{asset_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.protoface.com/v1/assets/{asset_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": {
"code": "transport.unsupported",
"message": "transport.type=pipecat is not supported",
"param": "transport.type",
"request_id": "req_01HXY5K8E7QYG3X8Z6N9R7S0VR",
"type": "invalid_request"
}
}{
"error": {
"code": "transport.unsupported",
"message": "transport.type=pipecat is not supported",
"param": "transport.type",
"request_id": "req_01HXY5K8E7QYG3X8Z6N9R7S0VR",
"type": "invalid_request"
}
}{
"error": {
"code": "transport.unsupported",
"message": "transport.type=pipecat is not supported",
"param": "transport.type",
"request_id": "req_01HXY5K8E7QYG3X8Z6N9R7S0VR",
"type": "invalid_request"
}
}Assets
Delete an asset
Permanently delete an asset’s stored content.
This is irreversible. Every stored version of the content is erased rather
than hidden, so the bytes cannot be recovered afterwards. The asset record
is retained with a deleted status and its usage and billing history stay
intact, but the content is no longer downloadable.
Deleting an asset that is already deleted succeeds and does nothing.
Returns 409 when work that is still in progress needs the content —
either as an input to it, or as the output it is still producing — or when
the content is shared with another resource, in which case delete that
resource instead.
Delete an asset
curl --request DELETE \
--url https://api.protoface.com/v1/assets/{asset_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.protoface.com/v1/assets/{asset_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.protoface.com/v1/assets/{asset_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": {
"code": "transport.unsupported",
"message": "transport.type=pipecat is not supported",
"param": "transport.type",
"request_id": "req_01HXY5K8E7QYG3X8Z6N9R7S0VR",
"type": "invalid_request"
}
}{
"error": {
"code": "transport.unsupported",
"message": "transport.type=pipecat is not supported",
"param": "transport.type",
"request_id": "req_01HXY5K8E7QYG3X8Z6N9R7S0VR",
"type": "invalid_request"
}
}{
"error": {
"code": "transport.unsupported",
"message": "transport.type=pipecat is not supported",
"param": "transport.type",
"request_id": "req_01HXY5K8E7QYG3X8Z6N9R7S0VR",
"type": "invalid_request"
}
}
