news

Update Post

The post replaced by what is sent, every field. slug null keeps a live post's address and makes a draft's from its title again. A change to the title, summary or body makes every translation of it outdated.

put/api/admin/news/{post_id}

Request

  • Base URL: https://api.getcheapgames.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.getcheapgames.com/api/admin/news/{post_id}
  • Auth: none declared

Path parameters

post_idinteger required

Headers

authorizationstring

Request body

object required

Response

Successful Response

idinteger required
slugstring required
titlestring required
dekstring required
tagstring required
authorstring required
bodyMdstring required
blocksobject[] required
readingMinutesinteger required
videoIdstring nullable required
gameIdsinteger[] required
coverSource'upload' | 'youtube' | 'game' nullable required
publishedAtstring date-time nullable required
createdAtstring date-time required
updatedAtstring date-time required
status'draft' | 'scheduled' | 'published' required
urlstring required
translationsobject

Changes

No recorded changes to this operation across all 2 revisions of this API.