Pulls
上传图片。Upload images.
获取上传文件的 URL,使用 PUT 流式上传。 Get the upload URL for the file. Use PUT to initiate a streaming upload. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-code:rw
post/{repo}/-/upload/imgs
Request
- Base URL: https://api.cnb.cool (the document declares no server; this is the origin it was published from)
- URL: https://api.cnb.cool/{repo}/-/upload/imgs
- Auth: API key in header Authorization
Path parameters
repostring required
仓库。Repo.
Request body
Response
OK
Example response
{
"assets": {
"path": "/{slug}/-/assets/xxx/xxx/xxxx-xxx.png"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.