GROWI REST API v1 (7.3.8-RC.0)

Download OpenAPI specification:Download

Comments

/comments.get

Get comments of the page of the revision

Authorizations:
(beareraccessTokenInQuery)
query Parameters
page_id
string (ObjectId)
Example: page_id=5ae5fccfc5577b0004dbd8ab

Object ID

revision_id
string (ObjectId)
Example: revision_id=5ae5fccfc5577b0004dbd8ab

Object ID

Responses

Response samples

Content type
application/json
{
  • "ok": true,
  • "comments": [
    ]
}

/comments.add

Post comment for the page

Authorizations:
(beareraccessTokenInQuery)
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "commentForm": {
    }
}

Response samples

Content type
application/json
{
  • "ok": true,
  • "comment": {
    }
}

/comments.update

Update comment dody

Authorizations:
(beareraccessTokenInQuery)
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "form": {
    }
}

Response samples

Content type
application/json
{
  • "ok": true,
  • "comment": {
    }
}

/comments.remove

Remove specified comment

Authorizations:
(beareraccessTokenInQuery)
Request Body schema: application/json
comment_id
required
string (ObjectId)

Object ID

Responses

Request samples

Content type
application/json
{
  • "comment_id": "5ae5fccfc5577b0004dbd8ab"
}

Response samples

Content type
application/json
{
  • "ok": true
}

Pages

Get page tags

Retrieve all tags associated with a specific page

Authorizations:
(beareraccessTokenInQuery)
query Parameters
pageId
required
string <ObjectId>
Example: pageId=507f1f77bcf86cd799439011

Unique identifier of the page

Responses

Response samples

Content type
application/json
{
  • "ok": true,
  • "tags": [
    ]
}

Get UpdatePost settings

Retrieve UpdatePost notification settings for a specific path

Authorizations:
(beareraccessTokenInQuery)
query Parameters
path
required
string
Examples:
  • path=/user/john - User page path
  • path=/project/myproject - Project page path

Page path to get UpdatePost settings for

Responses

Response samples

Content type
application/json
{
  • "ok": true,
  • "updatePost": [
    ]
}

Remove page

Delete a page either softly or completely, with optional recursive deletion

Authorizations:
(beareraccessTokenInQuery)
Request Body schema: application/json
required
page_id
required
string <ObjectId>

Unique identifier of the page to delete

revision_id
string <ObjectId>

Revision ID for conflict detection

completely
boolean
Default: false

Whether to delete the page completely (true) or soft delete (false)

recursively
boolean
Default: false

Whether to delete child pages recursively

Responses

Request samples

Content type
application/json
Example
{
  • "page_id": "507f1f77bcf86cd799439011",
  • "revision_id": "507f1f77bcf86cd799439012"
}

Response samples

Content type
application/json
{
  • "ok": true,
  • "path": "/user/example",
  • "isRecursively": true,
  • "isCompletely": false
}

Revert removed page

Restore a previously deleted (soft-deleted) page

Authorizations:
(beareraccessTokenInQuery)
Request Body schema: application/json
required
page_id
required
string <ObjectId>

Unique identifier of the page to restore

recursively
boolean
Default: false

Whether to restore child pages recursively

Responses

Request samples

Content type
application/json
Example
{
  • "page_id": "507f1f77bcf86cd799439011"
}

Response samples

Content type
application/json
{
  • "ok": true,
  • "page": {
    }
}

Remove page redirects

Remove all redirect entries that point to the specified page path

Authorizations:
(beareraccessTokenInQuery)
Request Body schema: application/json
required
path
required
string

Target path to remove redirects for

Responses

Request samples

Content type
application/json
{
  • "path": "/user/example"
}

Response samples

Content type
application/json
{
  • "ok": true,
  • "path": "/user/example"
}

Attachments

/attachments.uploadProfileImage

Upload profile image

Authorizations:
(beareraccessTokenInQuery)
Request Body schema:
file
string <binary>

attachment data

user
string

user to set profile image

Responses

Response samples

Content type
application/json
{
  • "ok": true,
  • "attachment": {
    }
}

/attachments.remove

Remove attachment

Authorizations:
(beareraccessTokenInQuery)
Request Body schema: application/json
attachment_id
required
string (ObjectId)

Object ID

Responses

Request samples

Content type
application/json
{
  • "attachment_id": "5ae5fccfc5577b0004dbd8ab"
}

Response samples

Content type
application/json
{
  • "ok": true
}

/attachments.removeProfileImage

Remove profile image

Authorizations:
(beareraccessTokenInQuery)
Request Body schema: application/json
user
string

user to remove profile image

Responses

Request samples

Content type
application/json
{
  • "user": "string"
}

Response samples

Content type
application/json
{
  • "ok": true
}

Users

/login

Authorizations:
(beareraccessTokenInQuery)
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "loginForm": {
    }
}

Response samples

Content type
application/json
{
  • "redirectTo": "string"
}

/register

Authorizations:
(beareraccessTokenInQuery)
Request Body schema: application/json
required
object

Responses

Request samples

Content type
application/json
{
  • "registerForm": {
    }
}

Response samples

Content type
application/json
{
  • "redirectTo": "string"
}

/user-activation/{token}

Authorizations:
(beareraccessTokenInQuery)
path Parameters
token
required
string

Responses

Search

/search

Search pages

Authorizations:
(beareraccessTokenInQuery)
query Parameters
q
required
string
Example: q=daily report

keyword

path
string (PagePath)
Example: path=/path/to/page

Page path

offset
integer (Offset)
Example: offset=0

Offset for pagination

limit
integer (Limit)
Example: limit=10

Limit for pagination

Responses

Response samples

Content type
application/json
{
  • "ok": true,
  • "meta": {
    },
  • "totalCount": 35,
  • "data": [
    ]
}

Tags

/tags.search

Search tags

Authorizations:
(beareraccessTokenInQuery)
query Parameters
q
string
Example: q=daily

keyword to search

Responses

Response samples

Content type
application/json
{
  • "ok": true,
  • "tags": [
    ]
}

/tags.update

Update tag

Authorizations:
(beareraccessTokenInQuery)
Request Body schema: application/json
pageId
string (ObjectId)

Object ID

revisionId
string (ObjectId)

Object ID

tags
Array of strings (Tags)

Tags

Responses

Request samples

Content type
application/json
{
  • "pageId": "5ae5fccfc5577b0004dbd8ab",
  • "revisionId": "5ae5fccfc5577b0004dbd8ab",
  • "tags": [
    ]
}

Response samples

Content type
application/json
{
  • "ok": true,
  • "tags": [
    ]
}

/tags.list

Get tags

Authorizations:
(beareraccessTokenInQuery)
query Parameters
limit
integer (Limit)
Example: limit=10

Limit for pagination

offset
integer (Offset)
Example: offset=0

Offset for pagination

Responses

Response samples

Content type
application/json
{
  • "ok": true,
  • "data": [
    ]
}