Documents
Bnder API documentation for Documents. Read the API Overview to get started and learn more.
Get all documents
Gets all documents the specified guild. Can be filtered by project id and number of results limited. Defaults to 100 results maximum
GET/consumer/v1/guilds/guildId /documents
Parameters | Description |
---|---|
guildId | The id of a discord guild |
limit | The number of items to return |
project_id | The ID of the project |
Request body
empty
Response
Status: 200 - Documents retrieved
Field | Type | Description |
---|---|---|
documents | array | List of documents |
Create a new document
Creates a new document in the specified guild
POST/consumer/v1/guilds/guildId /documents
Parameters | Description |
---|---|
guildId | The id of a discord guild |
Request body
empty
Response
Status: 200 - Document created
Field | Type | Description |
---|---|---|
id | string | ID of the document |
project_id | string | ID of the project the document belongs to |
title | string | Title of the document |
content | string | Content of the document |
topic_id | string | ID of the topic the document belongs to |
in_bin | boolean | Whether the document is in the bin |
delete_date | string | Date the document will be deleted if in the bin |
last_modified | string | Date the document was last modified |
Get a document
Gets the document data by id in the specified guild
GET/consumer/v1/guilds/guildId /documents/documentId
Parameters | Description |
---|---|
guildId | The id of a discord guild |
documentId | The ID of the document |
Request body
empty
Response
Status: 200 - Document retrieved
Field | Type | Description |
---|---|---|
id | string | ID of the document |
project_id | string | ID of the project the document belongs to |
title | string | Title of the document |
content | string | Content of the document |
topic_id | string | ID of the topic the document belongs to |
in_bin | boolean | Whether the document is in the bin |
delete_date | string | Date the document will be deleted if in the bin |
last_modified | string | Date the document was last modified |
Update a document
Updates a document in the specified guild
PUT/consumer/v1/guilds/guildId /documents/documentId
Parameters | Description |
---|---|
guildId | The id of a discord guild |
documentId | The ID of the document |
Request body
empty
Response
Status: 200 - Document updated
Field | Type | Description |
---|---|---|
id | string | ID of the document |
project_id | string | ID of the project the document belongs to |
title | string | Title of the document |
content | string | Content of the document |
topic_id | string | ID of the topic the document belongs to |
in_bin | boolean | Whether the document is in the bin |
delete_date | string | Date the document will be deleted if in the bin |
last_modified | string | Date the document was last modified |
Delete a document
Deletes a document in the specified guild
DELETE/consumer/v1/guilds/guildId /documents/documentId
Parameters | Description |
---|---|
guildId | The id of a discord guild |
documentId | The ID of the document |
Request body
empty
Response
Status: 204 - Document deleted
empty response