Skip to content

Send the bytes of an upload

PUT
/media/uploads/{token}
curl --request PUT \
--url https://api.dropslate.top/v1/media/uploads/example \
--header 'Content-Type: application/octet-stream' \
--data binary

The uploadUrl from POST /media/uploads: the signed ticket in the path is the whole credential, so no key or session is sent. Content-Length must equal the size the ticket was issued for; the body is the file itself.

token
required
string
Media typeapplication/octet-stream
string format: binary

Stored; processing happens in the background.

Media typeapplication/json
object
mediaId
string
status
string
Allowed values: processing
Example
{
"status": "processing"
}

The plan has no room left for the file (quota_exceeded).

Media typeapplication/problem+json
object
type

Where the code is explained: the errors page of the API reference, at the code.

string format: uri
title

The code again, for readers of RFC 9457.

string
status
integer
code
required
string
message
required
string
hint
string
details

Facts some codes carry: retryAfterSeconds on rate_limited, rows on plan_has_issues, kind, plan, limit, used and upgradeUrl on quota_exceeded. A quota kind is one of accounts, posts, storage, file, members, groups, api and mcp; for groups, api and mcp (a plan without groups, without the public API, or one that lets an agent read but not publish) limit and used are 0.

limit

quota_exceeded only: what the plan includes.

number
used

quota_exceeded only: what is in use.

number
upgradeUrl

quota_exceeded only: where the plans and what each includes are listed.

string format: uri
Example
{
"type": "https://docs.dropslate.top/api-reference/errors/#not_found",
"status": 404,
"code": "not_found",
"message": "The post does not exist.",
"hint": "Check the id and try again."
}

The ticket is forged, expired, or its file was deleted (not_found).

Media typeapplication/problem+json
object
type

Where the code is explained: the errors page of the API reference, at the code.

string format: uri
title

The code again, for readers of RFC 9457.

string
status
integer
code
required
string
message
required
string
hint
string
details

Facts some codes carry: retryAfterSeconds on rate_limited, rows on plan_has_issues, kind, plan, limit, used and upgradeUrl on quota_exceeded. A quota kind is one of accounts, posts, storage, file, members, groups, api and mcp; for groups, api and mcp (a plan without groups, without the public API, or one that lets an agent read but not publish) limit and used are 0.

limit

quota_exceeded only: what the plan includes.

number
used

quota_exceeded only: what is in use.

number
upgradeUrl

quota_exceeded only: where the plans and what each includes are listed.

string format: uri
Example
{
"type": "https://docs.dropslate.top/api-reference/errors/#not_found",
"status": 404,
"code": "not_found",
"message": "The post does not exist.",
"hint": "Check the id and try again."
}

already_uploaded, or size_mismatch when the body is not the size promised.

Media typeapplication/problem+json
object
type

Where the code is explained: the errors page of the API reference, at the code.

string format: uri
title

The code again, for readers of RFC 9457.

string
status
integer
code
required
string
message
required
string
hint
string
details

Facts some codes carry: retryAfterSeconds on rate_limited, rows on plan_has_issues, kind, plan, limit, used and upgradeUrl on quota_exceeded. A quota kind is one of accounts, posts, storage, file, members, groups, api and mcp; for groups, api and mcp (a plan without groups, without the public API, or one that lets an agent read but not publish) limit and used are 0.

limit

quota_exceeded only: what the plan includes.

number
used

quota_exceeded only: what is in use.

number
upgradeUrl

quota_exceeded only: where the plans and what each includes are listed.

string format: uri
Example
{
"type": "https://docs.dropslate.top/api-reference/errors/#not_found",
"status": 404,
"code": "not_found",
"message": "The post does not exist.",
"hint": "Check the id and try again."
}

No Content-Length (length_required).

Media typeapplication/problem+json
object
type

Where the code is explained: the errors page of the API reference, at the code.

string format: uri
title

The code again, for readers of RFC 9457.

string
status
integer
code
required
string
message
required
string
hint
string
details

Facts some codes carry: retryAfterSeconds on rate_limited, rows on plan_has_issues, kind, plan, limit, used and upgradeUrl on quota_exceeded. A quota kind is one of accounts, posts, storage, file, members, groups, api and mcp; for groups, api and mcp (a plan without groups, without the public API, or one that lets an agent read but not publish) limit and used are 0.

limit

quota_exceeded only: what the plan includes.

number
used

quota_exceeded only: what is in use.

number
upgradeUrl

quota_exceeded only: where the plans and what each includes are listed.

string format: uri
Example
{
"type": "https://docs.dropslate.top/api-reference/errors/#not_found",
"status": 404,
"code": "not_found",
"message": "The post does not exist.",
"hint": "Check the id and try again."
}

The body is larger than any upload may be.

Media typeapplication/problem+json
object
type

Where the code is explained: the errors page of the API reference, at the code.

string format: uri
title

The code again, for readers of RFC 9457.

string
status
integer
code
required
string
message
required
string
hint
string
details

Facts some codes carry: retryAfterSeconds on rate_limited, rows on plan_has_issues, kind, plan, limit, used and upgradeUrl on quota_exceeded. A quota kind is one of accounts, posts, storage, file, members, groups, api and mcp; for groups, api and mcp (a plan without groups, without the public API, or one that lets an agent read but not publish) limit and used are 0.

limit

quota_exceeded only: what the plan includes.

number
used

quota_exceeded only: what is in use.

number
upgradeUrl

quota_exceeded only: where the plans and what each includes are listed.

string format: uri
Example
{
"type": "https://docs.dropslate.top/api-reference/errors/#not_found",
"status": 404,
"code": "not_found",
"message": "The post does not exist.",
"hint": "Check the id and try again."
}