PUT
/
v8
/
certs
uploadCert
import { Vercel } from "@vercel/sdk";

const vercel = new Vercel({
  bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await vercel.certs.uploadCert({
    teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
    slug: "my-team-url-slug",
  });

  console.log(result);
}

run();
{
  "id": "<string>",
  "createdAt": 123,
  "expiresAt": 123,
  "autoRenew": true,
  "cns": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Query Parameters

teamId
string

The Team identifier to perform the request on behalf of.

Example:

"team_1a2b3c4d5e6f7g8h9i0j1k2l"

slug
string

The Team slug to perform the request on behalf of.

Example:

"my-team-url-slug"

Body

application/json
ca
string
required

The certificate authority

key
string
required

The certificate key

cert
string
required

The certificate

skipValidation
boolean

Skip validation of the certificate

Response

id
string
required
createdAt
number
required
expiresAt
number
required
autoRenew
boolean
required
cns
string[]
required