Overview
POST/storage/uploads/{id}/completestorage

Confirm an upload completed → mark the attachment ready

Create a record in complete.

Auth: bearerAuth — calls run as the authenticated user.

Parameters
  • idpathstring
Responses
200

Finalized (ready) attachment

  • attachmentStorageAttachment
Example
{
  "attachment": {
    "id": "string",
    "ecosystemId": "string",
    "customerId": "string",
    "ownerType": "string",
    "ownerId": "string",
    "objectKey": "string",
    "storageKind": "string",
    "filename": "string",
    "contentType": "string",
    "sizeBytes": 0,
    "contentHash": "string",
    "width": 0,
    "height": 0,
    "durationMs": 0,
    "status": "pending",
    "metadata": {},
    "createdAt": "string",
    "updatedAt": "string",
    "deletedAt": "string"
  }
}
401

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
404

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
409

Error

  • erroroptionalobject
Example
{
  "error": {
    "message": "string",
    "code": "string"
  }
}
Code examples
cURL
curl -X POST "https://api.agenticdeveloperhub.com/storage/uploads/{id}/complete" \
  -H "Authorization: Bearer YOUR_TOKEN"
JavaScript
const res = await fetch("https://api.agenticdeveloperhub.com/storage/uploads/{id}/complete", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_TOKEN"
  },
});
const data = await res.json();