Save the secret a secret link asks for
POST /Platform/uploads/links/{link_id}/secret
Save the secret a secret link asks for.
The upload-link page sends it for the signed-in person who opened the link. The value is stored in the organization's secret store under a new random id, and the link lists only its handle; the response never carries the value.
Path parameters
link_id: str. The link fromcreate_upload_link, of kindsecret.
Body parameters
secret: str. The credential the person typed.
Returns
UploadLink
link_id: str. Upload link identifier.url: str. Page to give the person; it requires signing in as the account that created it.kind: optional "file" or "secret". file: the person picks files. secret: the person types one credential, and files[0].hash is its handle.purpose: optional str. What the files are for, shown on the page.sites: optional List[str]. For a website login's password: the sites a browser may type it on, shown on the page. The handle is bound to them.max_files: int. How many files the link accepts.status: "pending" or "done" or "expired". pending: nothing uploaded yet; done: at least one file arrived; expired: closed with none.expires_at: float. When the link stops accepting files (Unix seconds).files: optional List[UploadFile]. Files uploaded through the link so far.
Example request
curl -X POST "https://api.hilus.ai/Platform/uploads/links/{link_id}/secret" \
-H "Authorization: Bearer $HILUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'