From 9a8c34f7808cd4b745e037cf3afa96089204233e Mon Sep 17 00:00:00 2001 From: Alys Date: Mon, 1 Feb 2021 09:37:20 +1000 Subject: [PATCH] remove alias from apidoc Body Parameters for creating a challenge task https://habitica.com/apidoc/#api-Task-CreateChallengeTasks Aliases can't be added by the challenge creator as shown by this test: https://github.com/HabitRPG/habitica/blob/2dad540d43b1bbe5587c95ab5876c23ef0ab7e19/test/api/v3/integration/tasks/challenges/POST-tasks_challenge_id.test.js#L77-L87 That's a requirement because in each user's account, each alias must be unique, and you can't enforce that if the challenge creator can assign an alias. --- website/server/controllers/api-v3/tasks.js | 1 - 1 file changed, 1 deletion(-) diff --git a/website/server/controllers/api-v3/tasks.js b/website/server/controllers/api-v3/tasks.js index 578bb1d009..a42f611323 100644 --- a/website/server/controllers/api-v3/tasks.js +++ b/website/server/controllers/api-v3/tasks.js @@ -247,7 +247,6 @@ api.createUserTasks = { * @apiParam (Body) {String} text The text to be displayed for the task * @apiParam (Body) {String="habit","daily","todo","reward"} type Task type, options are: "habit", * "daily", "todo", "reward". - * @apiParam (Body) {String} [alias] Alias to assign to task * @apiParam (Body) {String="str","int","per","con"} [attribute] User's attribute to use, * options are: "str", * "int", "per", "con".