OpenAPI 参考Community

Request an upload target for a post image

POST
/api/v1/community/attachments/upload-urls

Authorization

bearerAuth
AuthorizationBearer <token>

API key authentication.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/community/attachments/upload-urls" \  -H "Content-Type: application/json" \  -d '{    "fileName": "string",    "mimeType": "string",    "sizeBytes": -9007199254740991  }'
{  "uploadUrl": "string",  "storageKey": "string",  "publicUrl": "string",  "expiresIn": 0,  "duplicate": true}