From a006c75df9ddbdf69a3c3ba70a29a1bf78ad826b Mon Sep 17 00:00:00 2001 From: meltland Date: Sat, 22 Mar 2025 15:57:13 -0400 Subject: delete/edit --- COMMANDS.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'COMMANDS.md') diff --git a/COMMANDS.md b/COMMANDS.md index ffd6c26..fd9d783 100644 --- a/COMMANDS.md +++ b/COMMANDS.md @@ -7,7 +7,7 @@ Register an account. ### Required fields -- string `username`: 1-20 characters, a-z0-9-_ +- string `username`: 1-20 characters, a-z0-9-_. - string `password`: 1-255 characters - string `invite_code`: 16 characters @@ -59,4 +59,19 @@ Create a post. ### Required fields - string `content`: 0-3000 characters - list `replies`: 0-3 items -- list `attachments`: 0-3 items \ No newline at end of file +- list `attachments`: 0-3 items + +## `delete_post` +Delete a post by ID. +*Authentication required.* + +### Required fields +- string `id`: 8-127 characters + +## `edit_post` +Edit a post by ID. +*Authentication required.* + +### Required fields +- string `id`: 8-127 characters +- string `content`: 0-3000 characters \ No newline at end of file -- cgit 1.4.1-2-gfad0