MCPcopy Create free account
hub / github.com/observablehq/framework / postProject

Method postProject

src/observableApiClient.ts:130–146  ·  view source on GitHub ↗
({
    title,
    slug,
    workspaceId,
    accessLevel
  }: {
    title: string;
    slug: string;
    workspaceId: string;
    accessLevel: string;
  })

Source from the content-addressed store, hash-verified

128 }
129
130 async postProject({
131 title,
132 slug,
133 workspaceId,
134 accessLevel
135 }: {
136 title: string;
137 slug: string;
138 workspaceId: string;
139 accessLevel: string;
140 }): Promise<PostProjectResponse> {
141 return await this._fetch<PostProjectResponse>(new URL("/cli/project", this._apiOrigin), {
142 method: "POST",
143 headers: {"Content-Type": "application/json"},
144 body: JSON.stringify({title, slug, workspace: workspaceId, accessLevel})
145 });
146 }
147
148 async getWorkspaceProjects(workspaceLogin: string): Promise<GetProjectResponse[]> {
149 const pages = await this._fetch<PaginatedList<GetProjectResponse>>(

Callers 1

getDeployTargetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected