Skip to main content

Can someone point me to the documentation where authorization is controlled creating factsheets via the pathfinder API.  I am getting the following response.

 

{
"status": "ERROR",
"type": "PFBusinessLogicException",
"errorMessage": "Only system users may create Fact Sheets excluded from the quota.",
"errors": :
{
"value": "error",
"messages": :
"Only system users may create Fact Sheets excluded from the quota."
]
}
]
}

Hi @vannewkirkw This is not related to authorization, you are probably using the wrong request. Can you please post the request that you are sending to LeanIX?


Hi, I am a bit new to the API and associated request, I first tried the request provided in the Developer Portal and received a 400 error with data issues.

I am tryin the request below,  I do get an http 403 response code, would think I would get a 400 back if it were still a data issue.  But appreciate the assistance!


{
   "name": "string",
  "description": "string",
  "displayName": "string",
  "fullName": "string",
  "type": "Objective",
  "tags": ],
  "fields": "],
  "relations": e],
  "milestones": i],
  "completion": {
    "type": "SectionCompletion",
    "completion": 0,
    "percentage": 0,
    "subCompletions": {
      "additionalProp1": {
        "type": "ConcreteCompletion",
        "percentage": 0,
        "completion": 0
      },
      "additionalProp2": {
        "type": "ConcreteCompletion",
        "percentage": 0,
        "completion": 0
      },
      "additionalProp3": {
        "type": "ConcreteCompletion",
        "percentage": 0,
        "completion": 0
      }
    }
  },
  "createdAt": "2024-10-22T17:12:39.733Z",
  "updatedAt": "2024-10-22T17:12:39.733Z",
  "documents": 🙂,
  "comments": a],
  "approvedAt": "2024-10-22T17:12:39.733Z",
  "status": "ACTIVE",
  "lxState": "BROKEN_QUALITY_SEAL",
  "level": 0,
  "qualitySealStatus": "DISABLED",
  "permissions": {
    "self": :
      "READ"
    ],
    "create": Â
      "string"
    ],
    "read":
      "string"
    ],
    "update": Â
      "string"
    ],
    "delete": b
      "string"
    ]
  },
  "score": 0,
  "rev": 0,
  "lxExcludeFromQuota": true,
  "naFields":
    "string"
  ],
  "subscriptions": b
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "userId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "type": "ACCOUNTABLE",
      "linkedRoles": -
        {
          "roleId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "comment": "string",
          "name": "string",
          "description": "string"
        }
      ],
      "roles":
        {
          "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "name": "string",
          "restrictToFactSheetTypes": ]
            "string"
          ],
          "restrictToFactSheetType": 4
            "string"
          ],
          "subscriptionType": "ACCOUNTABLE"
        }
      ]
    }
  ],
  "permittedReadACL": /
    {}
  ],
  "permittedWriteACL":  
    {}
  ]
}
 


Wow, that’s an „interesting“ request. First of all, I can see where the error is coming from, because this request tries to create a fact sheet outside of the quota, as you can tell from the parameter „lxExcludeFromQuota: true“

But instead of trying to fix this enormous request, I would rather recommend to start from scratch. My best advice is to start reading here:

https://docs-eam.leanix.net/reference/create-and-update-fact-sheets

This will guide you through the correct way of creating fact sheets through the GraphQL API.

 


And if you rather want to skip the whole GraphQL part, you can check out the online demo of the Aronis LeanIX Python Client and write your code directly in Python using a full LeanIX SDK, effectively reducing your code complexity and size by 90%.


Reply