Use this API to manage group wikis. An API for project wikis is also available.
Comments on a wiki page are called notes. To interact with them, use the notes API.
List all wiki pages for a group
GET /api/v4/groups/{id}/wikis
Lists all wiki pages for a specified group.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
with_Query | Boolean | Include pages’ content Default: false |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not found | — |
Create a wiki page for a group
POST /api/v4/groups/{id}/wikis
Creates a wiki page for a specified group. Requests can define the title, slug, and content.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
contentRequired | String | Content of a wiki page |
format | String | Format of a wiki page. Allowed values: markdown,rdoc,asciidoc,orgDefault: markdown |
front_ | Object | Object that contains YAML frontmatter |
front_ | String | Frontmatter title of a wiki page |
titleRequired | String | Title of a wiki page |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Validation error | — |
404 | Not found | — |
422 | Unprocessable entity | — |
Upload an attachment to a group wiki
POST /api/v4/groups/{id}/wikis/attachments
Uploads a file to the uploads directory in a specified group wiki.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
Request body (multipart/form-data)
| Property | Type | Description |
|---|---|---|
branch | String | The name of the branch |
fileRequired | String (binary) | The attachment file to be uploaded |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not found | — |
Retrieve a wiki page for a group
GET /api/v4/groups/{id}/wikis/{slug}
Retrieves a specified wiki page for a group.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
slugPath, | String | The slug of a wiki page |
versionQuery | String | The version hash of a wiki page |
render_Query | Boolean | Render content to HTML Default: false |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not found | — |
Update a wiki page for a group
PUT /api/v4/groups/{id}/wikis/{slug}
Updates a specified wiki page for a group.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
slugPath, | String | The slug of a wiki page |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
content | String | Content of a wiki page |
format | String | Format of a wiki page. Allowed values: markdown,rdoc,asciidoc,orgDefault: markdown |
front_ | Object | Object that contains YAML frontmatter |
front_ | String | Frontmatter title of a wiki page |
title | String | Title of a wiki page |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Validation error | — |
404 | Not found | — |
422 | Unprocessable entity | — |
Delete a wiki page for a group
DELETE /api/v4/groups/{id}/wikis/{slug}
Deletes a specified wiki page from a group.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
slugPath, | String | The slug of a wiki page |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No Content | — |
400 | Validation error | — |
404 | Not found | — |
List all wiki pages for a project
GET /api/v4/projects/{id}/wikis
Lists all wiki pages for a specified project.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
with_Query | Boolean | Include pages’ content Default: false |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not found | — |
Create a wiki page for a project
POST /api/v4/projects/{id}/wikis
Creates a wiki page for a specified project. Requests can define the title, slug, and content.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
contentRequired | String | Content of a wiki page |
format | String | Format of a wiki page. Allowed values: markdown,rdoc,asciidoc,orgDefault: markdown |
front_ | Object | Object that contains YAML frontmatter |
front_ | String | Frontmatter title of a wiki page |
titleRequired | String | Title of a wiki page |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Validation error | — |
404 | Not found | — |
422 | Unprocessable entity | — |
Upload an attachment to a project wiki
POST /api/v4/projects/{id}/wikis/attachments
Uploads a file to the uploads directory in a specified project wiki.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
Request body (multipart/form-data)
| Property | Type | Description |
|---|---|---|
branch | String | The name of the branch |
fileRequired | String (binary) | The attachment file to be uploaded |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Created | APIEntities |
400 | Bad Request | — |
404 | Not found | — |
Retrieve a wiki page for a project
GET /api/v4/projects/{id}/wikis/{slug}
Retrieves a specified wiki page for a project.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
slugPath, | String | The slug of a wiki page |
versionQuery | String | The version hash of a wiki page |
render_Query | Boolean | Render content to HTML Default: false |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Bad Request | — |
404 | Not found | — |
Update a wiki page for a project
PUT /api/v4/projects/{id}/wikis/{slug}
Updates a specified wiki page for a project.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
slugPath, | String | The slug of a wiki page |
Request body (application/json)
| Property | Type | Description |
|---|---|---|
content | String | Content of a wiki page |
format | String | Format of a wiki page. Allowed values: markdown,rdoc,asciidoc,orgDefault: markdown |
front_ | Object | Object that contains YAML frontmatter |
front_ | String | Frontmatter title of a wiki page |
title | String | Title of a wiki page |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIEntities |
400 | Validation error | — |
404 | Not found | — |
422 | Unprocessable entity | — |
Delete a wiki page for a project
DELETE /api/v4/projects/{id}/wikis/{slug}
Deletes a specified wiki page from a project.
Parameters
| Name | Type | Description |
|---|---|---|
idPath, | String or integer | The ID or URL- |
slugPath, | String | The slug of a wiki page |
Responses
| Code | Description | Schema |
|---|---|---|
204 | No Content | — |
400 | Validation error | — |
404 | Not found | — |
Schemas
Objects returned by the operations above and objects nested in their request bodies.
APIEntitiesWikiAttachment
| Property | Type | Description |
|---|---|---|
branch | String | Example:main |
file_ | String | Example:dk. |
file_ | String | Example:uploads/ |
link | Object | — |
link. | String | Example: | Example:123 |
APIEntitiesWikiPageBasic
| Property | Type | Description |
|---|---|---|
format | String | Example:markdown |
slug | String | Example:deploy |
title | String | Example:deploy |
wiki_ | Integer (int64) | Example:123 |