From 8b99b7df05124b99ed7eade022cdde0eb8d4d1aa Mon Sep 17 00:00:00 2001 From: alma Date: Tue, 6 May 2025 17:39:21 +0200 Subject: [PATCH] missions api2 --- lib/services/outline-service.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/services/outline-service.ts b/lib/services/outline-service.ts index c5119eb2..a6384dfa 100644 --- a/lib/services/outline-service.ts +++ b/lib/services/outline-service.ts @@ -30,13 +30,14 @@ export class OutlineService { try { // Create a collection in Outline based on the mission - // Note: According to Outline API, setting permission to "private" makes it private + // Note: According to error message, valid permission values are 'read', 'read_write', 'admin' + // We'll use private: true to make it private const payload = { name: collectionName, description: mission.description || 'Mission documentation', color: '#4f46e5', // Indigo color as default - permission: "private", // This is the correct way to make it private - private: true // Keep this for backward compatibility + permission: "read_write", // This should be one of the allowed values + private: true // This is what actually makes it private }; console.log('Sending to Outline API:', JSON.stringify(payload, null, 2));