Revisions
Get a Revision by Article ID and Revision ID
Property | Description |
---|---|
Method | GET |
Path | /open/v1/spaces/$me/articles/{articleId}/revisions/{revisionId} |
Accept | - |
Content-Type | application/json |
Description | Retrieves a revision of an article specified by article and revision ID. |
- Request
- Query
(empty) - Body
// (empty)
- Query
- Response
type RevisionView = { revision: Revision author: Author }
Batch Get Revisions by Article ID and Revision IDs
Property | Description |
---|---|
Method | GET |
Path | /open/v1/spaces/$me/articles/{articleId}/revisions/batch |
Accept | - |
Content-Type | application/json |
Description | Retrieves multiple revisions of an article by IDs. Can fetch up to 25 revisions at once. |
-
Request
-
Query
Param Required? Default Type Description Example ids[] O - string[] IDs of revisions to fetch. ?ids[]=42&ids[]=37 -
Body
// (empty)
-
-
Response
type RevisionView = { revisions: Revision[] authors: Author[] }
List by Article ID and Language
Property | Description |
---|---|
Method | GET |
Path | /open/v1/spaces/$me/articles/{articleId}/revisions |
Accept | - |
Content-Type | application/json |
Description | Retrieves a paginated list of revisions of an article, ordered by update timestamp. |
-
Request
-
Query
Param Required? Default Type Description Example language O - string Requested language ko limit X 25 number Used for pagination 25 since X string Used for pagination 1707017182188 order X asc ‘asc’ | 'desc' Sort order asc -
Body
// (empty)
-
-
Response
type RevisionListView = { revisions: Revision[] authors: Author[] next?: string }
Updated 4 months ago