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));