Upload files
POST
/api/v2/repository/files/
const url = 'https://api.full-fill.ai/api/v2/repository/files/';const form = new FormData();form.append('files', 'example');form.append('tags', 'example');form.append('analysis_type', 'unknown');form.append('relevant_offerings', '1');form.append('scope_includes_company', 'false');
const options = {method: 'POST', headers: {'X-API-Key': '<X-API-Key>'}};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.full-fill.ai/api/v2/repository/files/ \ --header 'Content-Type: multipart/form-data' \ --header 'X-API-Key: <X-API-Key>' \ --form files=example \ --form tags=example \ --form analysis_type=unknown \ --form relevant_offerings=1 \ --form scope_includes_company=falseUpload one or more files to the repository.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typemultipart/form-data
Input serializer for uploading files
object
files
required
Array<string>
tags
Array<string>
analysis_type
string
relevant_offerings
Array<integer>
scope_includes_company
boolean
Responses
Section titled “Responses”Media typeapplication/json
Output for POST /files/
object
count
required
integer
failed
Array<string>
Examplegenerated
{ "count": 1, "failed": [ "example" ]}