Endpoints
- access-groups
- artifacts
- checks
- projects
- deployments
- domains
- dns
- API Reference
- logDrains
- edge-config
- user
- marketplace
- integrations
- authentication
- logs
- projectMembers
- environment
- security
- teams
- webhooks
- aliases
- certs
API Reference
Post projects logs presets
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 of the preset
Body
application/json
Response
200
application/json
Data representing a Team.
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
}
}