Hand in an upload through a link
POST
/api/v1/shared/{token}/assets
const url = 'http://localhost:3000/api/v1/shared/example/assets';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"token":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","filename":"example","mime":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/v1/shared/example/assets \ --header 'Content-Type: application/json' \ --data '{ "token": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "filename": "example", "mime": "example" }'It lands proposed, in the link’s collection. The guest learns it arrived, nothing about the library.
No key needed.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”token
required
string
From an upload link
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
token
required
From POST /api/v1/shared/{token}/uploads, after the PUT
string format: uuid
filename
required
string
mime
required
string
Examplegenerated
{ "token": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "filename": "example", "mime": "example"}Responses
Section titled “Responses”Received
Media typeapplication/json
object
data
required
object
received
required
boolean
deduped
required
boolean
Example
{ "data": { "received": true }}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}