Submit a password challenge for a protected share.
POST
/{opaque-id}/password
const url = 'https://s.share2.us/example/password';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"password":"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 https://s.share2.us/example/password \ --header 'Content-Type: application/json' \ --data '{ "password": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”opaque-id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
password
required
string
Examplegenerated
{ "password": "example"}Responses
Section titled “Responses”Password accepted.
Media typeapplication/json
object
public_id
required
string
filename
required
string
size_bytes
required
integer format: int64
state
required
string
password_required
boolean
download_url
string | null format: uri
expires_at
required
string format: date-time
Example
{ "state": "created"}default
Section titled “default”Standard error envelope.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
request_id
required
string
Example
{ "error": { "code": "quota_exceeded" }}