sayren Docs
업로드

파일 업로드 자리 발급

POST
/v1/uploads
AuthorizationBearer <token>

userToken(계정 스코프) 또는 storeToken(스토어 스코프)

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

filename*string
Length1 <= length <= 255

Response Body

application/json

curl -X POST "https://example.com/v1/uploads" \  -H "Content-Type: application/json" \  -d '{    "filename": "string"  }'
{  "meta": {    "status": 201,    "code": "OK",    "message": "OK",    "isSuccess": true  },  "data": {    "url": "http://example.com",    "uploadUrl": "http://example.com"  },  "error": null}