Skip to main content
PUT
/
api
/
e2
/
endpoints
/
{id}
JavaScript
import Inbound from 'inboundemail';

const client = new Inbound({
  apiKey: process.env['INBOUND_API_KEY'], // This is the default and can be omitted
});

const endpoint = await client.endpoints.update('id');

console.log(endpoint.id);
{
  "id": "<string>",
  "name": "<string>",
  "type": "webhook",
  "config": "<unknown>",
  "isActive": true,
  "description": "<string>",
  "userId": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "groupEmails": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

Your Inbound API key. Include it in the Authorization header as: Bearer

Path Parameters

id
string
required

Body

name
string
Required string length: 1 - 255
description
string
Maximum string length: 1000
isActive
boolean
config
WebhookConfig · object
webhookFormat
enum<string>
Available options:
inbound,
discord,
slack

Response

Response for status 200

id
string
required
name
string
required
type
enum<string>
required
Available options:
webhook,
email,
email_group
config
any
required
isActive
boolean
required
description
string · null · null
required
userId
string
required
createdAt
string · null · null
required
updatedAt
string · null · null
required
groupEmails
string[] · null · null
required