---
title: "Add or update webhook where shipment tracking updates are posted."
method: PUT
path: "/api/v4/parcel/webhook/endpoint"
tags: ["Parcel: Webhook"]
---

# Add or update webhook where shipment tracking updates are posted.

`PUT /api/v4/parcel/webhook/endpoint`

## Request

- Base URL: `https://na12.api.project44.com`
- URL: `https://na12.api.project44.com/api/v4/parcel/webhook/endpoint`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `/api/v4/oauth2/token`
- TypeScript: <https://skmtc.dev/project44/apis/project44-rest-api/docs/api/v4/parcel/webhook/endpoint/put.ts> (a function with typed inputs; its response is checked against the schema)

<h4><b>Required Fields</h4></b>
<ul><li> url </li></ul>

## Request body

- ParcelWebhookEndpoint: A parcel webhook endpoint.
  - `includeFullHistory` boolean: Include full update history
  - `password` string: Specify password if endpoint requires authentication.
  - `showLatestUpdate` boolean: Separately show latest update
  - `url` string: URL to which a POST request will be made with the content of the status update for a specific parcel shipment.
  - `username` string: Specify username if endpoint requires authentication.

## Response `200`

OK

- ParcelWebhookEndpoint: A parcel webhook endpoint.
  - `includeFullHistory` boolean: Include full update history
  - `password` string: Specify password if endpoint requires authentication.
  - `showLatestUpdate` boolean: Separately show latest update
  - `url` string: URL to which a POST request will be made with the content of the status update for a specific parcel shipment.
  - `username` string: Specify username if endpoint requires authentication.

## Other responses

- `400`: Invalid request
- `401`: Invalid or missing credentials
- `403`: User not authorized to perform this operation

---

[API](https://skmtc.dev/project44/apis/project44-rest-api.md) - [All operations](https://skmtc.dev/project44/apis/project44-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/project44/apis/project44-rest-api/revisions/cdf9675e2294?raw)
