Ingest
Complete an ingest upload
Mark a Black Hole upload complete after GCS put.
POST
/
api
/
v2
/
ingest
/
uploads
/
{item_id}
/
complete
/
Complete an upload (verify + land UNMATCHED)
curl --request POST \
--url https://api.example.com/api/v2/ingest/uploads/{item_id}/complete/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v2/ingest/uploads/{item_id}/complete/"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v2/ingest/uploads/{item_id}/complete/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"item_id": "<string>",
"state": "<string>"
}{}{}{}{}{}{}Agent signals the bytes are in GCS. The server verifies sha256 and claims RECEIVED. Do not retry a successful complete as a new register.
⌘I
Complete an upload (verify + land UNMATCHED)
curl --request POST \
--url https://api.example.com/api/v2/ingest/uploads/{item_id}/complete/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v2/ingest/uploads/{item_id}/complete/"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v2/ingest/uploads/{item_id}/complete/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"item_id": "<string>",
"state": "<string>"
}{}{}{}{}{}{}
