news

Update News

更新已有新闻的内容字段(标题、封面图、描述、原文链接、作者) 需要管理员权限 仅更新前端实际传入的内容字段,不改变展示状态与 Banner 顺序 更新后清除缓存

put/api/v1/news/{news_uuid}

Request

  • Base URL: https://opencloudos.org (the document declares no server; this is the origin it was published from)
  • URL: https://opencloudos.org/api/v1/news/{news_uuid}
  • Auth: OAuth 2 (password, token URL /api/v1/users/login)

Path parameters

news_uuidstring uuid required

Request body

titlestring nullable
img_urlstring nullable
descstring nullable
redirect_uristring nullable
authorstring nullable
is_displayboolean nullable
display_orderinteger nullable

Response

Successful Response

uuidstring uuid required
titlestring required
img_urlstring nullable
descstring nullable
redirect_uristring nullable
authorstring nullable
is_displayboolean required
display_orderinteger nullable
is_bannerboolean required
banner_orderinteger nullable

Changes

No recorded changes to this operation across all 1 revision of this API.