logDrains
Creates a new Integration Log Drain (deprecated)
Changed onCreates an Integration log drain. This endpoint must be called with an OAuth2 client (integration), since log drains are tied to integrations. If it is called with a different token type it will produce a 400 error.
post/v2/integrations/log-drains
Request
- Base URL: https://api.vercel.com
- URL: https://api.vercel.com/v2/integrations/log-drains
- Auth: HTTP bearer
Query parameters
teamIdstring
Example:team_1a2b3c4d5e6f7g8h9i0j1k2l
The Team identifier to perform the request on behalf of.
slugstring
Example:my-team-url-slug
The Team slug to perform the request on behalf of.
Request body
Example request
{
"name": "My first log drain",
"secret": "a1Xsfd325fXcs",
"deliveryFormat": "json",
"url": "https://example.com/log-drain"
}Response
The log drain was successfully created
Example response
{
"branch": "feature/*",
"clientId": "oac_xRhY4LAB7yLhUADD69EvV7ct",
"configurationId": "icfg_3bwCLgxL8qt5kjRLcv2Dit7F",
"createdAt": 1558531915505,
"createdFrom": "integration",
"deliveryFormat": "json",
"environments": [
"production"
],
"id": "ld_nBuA7zCID8g4QZ8g",
"name": "My first log drain",
"ownerId": "kr1PsOIzqEL5Xg6M4VZcZosf",
"projectId": "AbCgVkqoxXeXCDWehVir51LHGrrcWL4mkYm14W6UBPWQeb",
"samplingRate": 0.5,
"sources": [
"build",
"edge"
],
"url": "https://example.com/log-drain"
}Changes
- info
added the non-success response with the status
- info
- info
added the optional property
//to the response with the status
- info