[{"data":1,"prerenderedAt":240},["ShallowReactive",2],{"page:\u002Fapi-references\u002Fgeneration-attachment\u002Fcomplete-upload":3},{"id":4,"title":5,"apiPage":6,"body":7,"description":214,"extension":215,"layout":216,"meta":217,"navigation":6,"path":218,"playground":219,"seo":237,"stem":238,"__hash__":239},"docs\u002Fapi-references\u002Fgeneration-attachment\u002Fcomplete-upload.md","Complete Upload",true,{"type":8,"value":9,"toc":206},"minimark",[10,14,19,25,29,142,146,151,160,164,172,192,196,202],[11,12,5],"h1",{"id":13},"complete-upload",[15,16],"api-endpoint",{"method":17,"url":18},"POST","\u002Fapi\u002Fgeneration-attachments\u002F:id\u002Fupload.complete",[20,21],"api-requirements",{":roles":22,"scope":23,"tier":24},"[\"OWNER\",\"ADMIN\",\"MEMBER\"]","ai:generate","4",[26,27,28],"p",{},"Completes a generation attachment upload.\nAvailable only in projects of the workspace your API key or connection belongs to, not in projects another workspace has linked to it.",[30,31,33,38,101],"api-example",{"method":17,"url":18,"status":32},"204 No Content",[34,35,37],"h2",{"id":36},"example","Example",[39,40,45],"pre",{"className":41,"code":42,"language":43,"meta":44,"style":44},"language-bash shiki shiki-themes ayu-light ayu-light ayu-dark","curl -X POST 'https:\u002F\u002Fapi.youvico.com\u002Fapi\u002Fgeneration-attachments\u002FGA1234567890ABCD\u002Fupload.complete' \\\n  -H 'Authorization: Bearer YOUR_API_KEY' \\\n  -H 'Content-Type: application\u002Fjson' \\\n  -d '{ \"parts\": [{ \"partNumber\": 1, \"eTag\": \"etag-1\" }] }'\n","bash","",[46,47,48,71,82,92],"code",{"__ignoreMap":44},[49,50,53,57,61,65,68],"span",{"class":51,"line":52},"line",1,[49,54,56],{"class":55},"s6MYo","curl",[49,58,60],{"class":59},"sTJUr"," -X",[49,62,64],{"class":63},"sHwJV"," POST",[49,66,67],{"class":63}," 'https:\u002F\u002Fapi.youvico.com\u002Fapi\u002Fgeneration-attachments\u002FGA1234567890ABCD\u002Fupload.complete'",[49,69,70],{"class":59}," \\\n",[49,72,74,77,80],{"class":51,"line":73},2,[49,75,76],{"class":59},"  -H",[49,78,79],{"class":63}," 'Authorization: Bearer YOUR_API_KEY'",[49,81,70],{"class":59},[49,83,85,87,90],{"class":51,"line":84},3,[49,86,76],{"class":59},[49,88,89],{"class":63}," 'Content-Type: application\u002Fjson'",[49,91,70],{"class":59},[49,93,95,98],{"class":51,"line":94},4,[49,96,97],{"class":59},"  -d",[49,99,100],{"class":63}," '{ \"parts\": [{ \"partNumber\": 1, \"eTag\": \"etag-1\" }] }'\n",[102,103,104],"template",{"v-slot:request":44},[39,105,106],{"className":41,"code":42,"language":43,"meta":44,"style":44},[46,107,108,120,128,136],{"__ignoreMap":44},[49,109,110,112,114,116,118],{"class":51,"line":52},[49,111,56],{"class":55},[49,113,60],{"class":59},[49,115,64],{"class":63},[49,117,67],{"class":63},[49,119,70],{"class":59},[49,121,122,124,126],{"class":51,"line":73},[49,123,76],{"class":59},[49,125,79],{"class":63},[49,127,70],{"class":59},[49,129,130,132,134],{"class":51,"line":84},[49,131,76],{"class":59},[49,133,89],{"class":63},[49,135,70],{"class":59},[49,137,138,140],{"class":51,"line":94},[49,139,97],{"class":59},[49,141,100],{"class":63},[34,143,145],{"id":144},"request","Request",[147,148,150],"h3",{"id":149},"path","Path",[152,153,157],"param-field",{":required":154,"name":155,"type":156},"true","id","string",[26,158,159],{},"Generation attachment ID",[147,161,163],{"id":162},"body","Body",[152,165,169],{":required":154,"name":166,"type":167,"constraints":168},"parts","array","At least 1 item",[26,170,171],{},"Uploaded parts",[173,174,175,184],"param-children",{},[152,176,181],{":required":154,"name":177,"type":178,"constraints":179,":indent":154,"example":180},"parts[].partNumber","number","Integer, 1-10000","1",[26,182,183],{},"Part number",[152,185,189],{":required":154,"name":186,"type":156,"constraints":187,":indent":154,"example":188},"parts[].eTag","1-255 characters","etag-1",[26,190,191],{},"ETag response header from the part's PUT",[34,193,195],{"id":194},"response","Response",[26,197,198,199,201],{},"Returns ",[46,200,32],{},".",[203,204,205],"style",{},"html pre.shiki code .s6MYo, html code.shiki .s6MYo{--shiki-light:#22A4E6;--shiki-default:#22A4E6;--shiki-dark:#59C2FF}html pre.shiki code .sTJUr, html code.shiki .sTJUr{--shiki-light:#4CBF99;--shiki-default:#4CBF99;--shiki-dark:#95E6CB}html pre.shiki code .sHwJV, html code.shiki .sHwJV{--shiki-light:#86B300;--shiki-default:#86B300;--shiki-dark:#AAD94C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":44,"searchDepth":94,"depth":94,"links":207},[208,209,213],{"id":36,"depth":73,"text":37},{"id":144,"depth":73,"text":145,"children":210},[211,212],{"id":149,"depth":84,"text":150},{"id":162,"depth":84,"text":163},{"id":194,"depth":73,"text":195},"Finish uploading a reference file for AI generation by sending each part's number and ETag. Works only in projects of your API key's workspace.","md",null,{},"\u002Fapi-references\u002Fgeneration-attachment\u002Fcomplete-upload",{"method":17,"path":18,"params":220,"body":223,"fields":224},[221],{"name":155,"example":222,"type":156,"required":6,"constraints":44,"description":159},"GA1234567890ABCD","{\n  \"parts\": [\n    {\n      \"partNumber\": 1,\n      \"eTag\": \"etag-1\"\n    }\n  ]\n}",[225],{"key":166,"type":167,"required":6,"constraints":168,"description":171,"values":226,"array":6,"children":227},[],[228,233],{"key":229,"type":178,"required":6,"constraints":179,"description":183,"values":230,"array":231,"children":232},"partNumber",[],false,[],{"key":234,"type":156,"required":6,"constraints":187,"description":191,"values":235,"array":231,"children":236},"eTag",[],[],{"title":5,"description":214},"api-references\u002Fgeneration-attachment\u002Fcomplete-upload","L655Q0WTlSq4G0gzKUNGeKYrMxKVWWfLnM0BCKaHaE0",1792305902698]