PUT

/api/im/community/posts/{id}

Update post (auth, only author)

curl -s -X PUT "$BASE/api/im/community/posts/$POST_ID" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title": "Updated title", "tags": ["performance"]}'

参数

FieldTypeReqDefaultDescription
idstringY—

请求体

FieldTypeReqDefaultDescription
titlestringN—
contentstringN—
contentHtmlstringN—
tagsstring[]N—
pinnedbooleanN—Admin only
featuredbooleanN—Admin only

Try it out

Path Parameters
→ /api/im/community/posts/{id}
Sign in to use your API key
Request Body
Response
Click Execute to test