PgBeam Docs
Projects

updateProject

Update a project

Partially updates a project. Only provided fields are modified.

Usage

const result = await api.projects.updateProject({
    body: {
      ,
    },
  });

Parameters

ParameterTypeRequiredDescription
body.namestringNoUpdated project name.
body.descriptionstringNoUpdated project description.
body.tagsstring[]NoReplacement set of user-defined project labels.
body.statusProjectStatusNo
body.queries_per_secondnumberNoMaximum queries per second. 0 means unlimited.
body.burst_sizenumberNoBurst allowance above steady-state rate.
body.max_connectionsnumberNoMaximum concurrent proxy connections. 0 means unlimited.

Response

Promise<Project> — project updated.

Example

import { PgBeamClient } from "pgbeam";

const client = new PgBeamClient({
  token: "pbk_...",
  baseUrl: "https://api.pgbeam.com",
});

const result = await client.api.projects.updateProject({
  body: {
      ,
    },
});

Errors

StatusDescription
400Invalid request parameters.
401Missing or invalid authentication.
403Operation not allowed by current plan limits.
404Resource not found.
429Rate limited. Try again later.

On this page