---
title: "Save Push Subscription"
method: PUT
path: "/harness/push/subscription"
tags: ["harness"]
---

# Save Push Subscription

`PUT /harness/push/subscription`

## Request

- Base URL: `https://api.getathly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getathly.com/harness/push/subscription`
- Auth: HTTP bearer

## Request body

- PushSubscriptionRequest
  - `athlete_slug` string, required
  - `endpoint` string, required
  - `keys` PushSubscriptionKeys, required
    - `p256dh` string, required
    - `auth` string, required

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getathly/apis/athly-api.md) - [All operations](https://skmtc.dev/getathly/apis/athly-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getathly/apis/athly-api/revisions/6adfdc258d75?raw)
