Infohub JS API
Loading...
Searching...
No Matches
BcfProjectsResource Class Reference

Description

Provides access to the BCF projects visible to the authenticated user.

const projects = await bcf.projects.list();

Public Member Functions

 list ()

Function Documentation

◆ list()

list ( )

Lists all accessible BCF projects.

Returns
{Promise<ApiResponse>} The response containing the projects.
// Output:
[{
"project_id": "F445F4F2-4D02-4B2A-B612-5E456BEF9137",
"name": "Example project 1",
"authorization": { "project_actions": ["createTopic", "createDocument"] }
}, {
"project_id": "A233FBB2-3A3B-EFF4-C123-DE22ABC8414",
"name": "Example project 2",
"authorization": { "project_actions": [] }
}]