POST
/
projects
/
{projectId}
/
logs-presets
import { Vercel } from "@vercel/sdk";

const vercel = new Vercel();

async function run() {
  const result = await vercel.postProjectsProjectIdLogsPresets({
    projectId: "<id>",
    requestBody: {
      query: "timeline=past30Minutes&startDate=1690446214407&endDate=1690448014407&levels=info&domains=vercel.com",
      title: "Request Path",
      group: "team",
    },
  });

  // Handle the result
  console.log(result);
}

run();
{
  "id": "ABCDEFG000011111",
  "data": {
    "query": "<string>",
    "creatorId": "<string>",
    "title": "<string>",
    "groupId": "<string>",
    "ownerId": "<string>",
    "projectId": "<string>",
    "createdAt": 123
  }
}

Path Parameters

projectId
string
required

projectId of the preset

Body

application/json

Response

200
application/json

Data representing a Team.