PgBeam Docs
Projects

updateProject

Update a project

Partially updates a project. Only provided fields are modified.

Usage

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

Parameters

ParameterTypeRequiredDescription
pathParams.project_idstringYesUnique project identifier (prefixed, e.g. prj_xxx).
body.namestringNoUpdated project name.
body.descriptionstringNoUpdated project description.
body.tagsstring[]NoReplacement set of user-defined project labels.
body.statusProjectStatusNo
body.allowed_cidrsCidrEntry[]NoIP filtering rules as CIDR ranges with optional labels. Empty array means allow all. Both IPv4 and IPv6 CIDR notation are supported.

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({
  pathParams: { project_id: "prj_xxx" },
  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