• Admin Key
  • Attachment
  • Ancestors
  • Blog Post
  • Children
  • Classification Level
  • Comment
  • Content
  • Content Properties
  • Custom Content
  • Database
  • Data Policies
  • Descendants
  • Folder
  • Label
  • Like
  • Operation
  • Page
  • Space
  • Space Permissions
  • Space Properties
  • Space Roles
  • Task
  • User
  • Version
  • Whiteboard
Cloud
Confluence Cloud / Reference / REST API v2

Database

Postman Collection
OpenAPI
POST

Create database

Creates a database in the space.

Permissions required: Permission to view the corresponding space. Permission to create a database in the space.

Data Security Policy: Not exempt from app access rules
Scopes
write:database:confluence

Connect app scope requiredWRITE

Request

Query parameters

private

boolean

Request bodyapplication/json

spaceId

string

Required
title

string

parentId

string

Responses

Returned if the database was successfully created.

application/json

allOf [DatabaseSingle, object]

DatabaseSingle
object
POST/databases
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import { requestConfluence } from "@forge/bridge"; var bodyData = `{ "spaceId": "<string>", "title": "<string>", "parentId": "<string>" }`; const response = await requestConfluence(`/wiki/api/v2/databases`, { method: 'POST', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' }, body: bodyData }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json());
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 { "id": "<string>", "type": "<string>", "status": "current", "title": "<string>", "parentId": "<string>", "parentType": "page", "position": 59, "authorId": "<string>", "ownerId": "<string>", "createdAt": "<string>", "version": { "createdAt": "<string>", "message": "<string>", "number": 19, "minorEdit": true, "authorId": "<string>" }, "_links": { "base": "<string>" } }
GET

Get database by id

Returns a specific database.

Permissions required: Permission to view the database and its corresponding space.

Data Security Policy: Not exempt from app access rules
Scopes
read:database:confluence

Connect app scope requiredREAD

Request

Path parameters

id

integer

Required

Query parameters

include-collaborators

boolean

include-direct-children

boolean

include-operations

boolean

include-properties

boolean

Responses

Returned if the requested database is returned.

application/json

allOf [DatabaseSingle, object]

DatabaseSingle
object
GET/databases/{id}
1 2 3 4 5 6 7 8 9 10 11 12 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import { requestConfluence } from "@forge/bridge"; const response = await requestConfluence(`/wiki/api/v2/databases/{id}`, { headers: { 'Accept': 'application/json' } }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.json());
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 { "id": "<string>", "type": "<string>", "status": "current", "title": "<string>", "parentId": "<string>", "parentType": "page", "position": 59, "authorId": "<string>", "ownerId": "<string>", "createdAt": "<string>", "version": { "createdAt": "<string>", "message": "<string>", "number": 19, "minorEdit": true, "authorId": "<string>" }, "_links": { "base": "<string>" } }
DEL

Delete database

Delete a database by id.

Deleting a database moves the database to the trash, where it can be restored later

Permissions required: Permission to view the database and its corresponding space. Permission to delete databases in the space.

Data Security Policy: Not exempt from app access rules
Scopes
delete:database:confluence

Connect app scope requiredDELETE

Request

Path parameters

id

integer

Required

Responses

Returned if the database was successfully deleted.

DEL/databases/{id}
1 2 3 4 5 6 7 8 9 10 // This sample uses Atlassian Forge // https://developer.atlassian.com/platform/forge/ import { requestConfluence } from "@forge/bridge"; const response = await requestConfluence(`/wiki/api/v2/databases/{id}`, { method: 'DELETE' }); console.log(`Response: ${response.status} ${response.statusText}`); console.log(await response.text());

Rate this page:

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy