missions api2
This commit is contained in:
parent
b4188003e1
commit
8b99b7df05
@ -30,13 +30,14 @@ export class OutlineService {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// Create a collection in Outline based on the mission
|
// 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 = {
|
const payload = {
|
||||||
name: collectionName,
|
name: collectionName,
|
||||||
description: mission.description || 'Mission documentation',
|
description: mission.description || 'Mission documentation',
|
||||||
color: '#4f46e5', // Indigo color as default
|
color: '#4f46e5', // Indigo color as default
|
||||||
permission: "private", // This is the correct way to make it private
|
permission: "read_write", // This should be one of the allowed values
|
||||||
private: true // Keep this for backward compatibility
|
private: true // This is what actually makes it private
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log('Sending to Outline API:', JSON.stringify(payload, null, 2));
|
console.log('Sending to Outline API:', JSON.stringify(payload, null, 2));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user