---
title: "Announce a release's commit and deploy metadata"
method: POST
path: "/errors/releases"
tags: ["Errors"]
---

# Announce a release's commit and deploy metadata

`POST /errors/releases`

## Request

- Base URL: `https://realuptime.io/api/v1`
- URL: `https://realuptime.io/api/v1/errors/releases`
- Auth: HTTP bearer

## Request body

- object
  - `projectId` string, uuid, required
  - `release` string, required
  - `commitSha` string
  - `repoUrl` string, uri
  - `deployedAt` string
  - `previousRelease` string

## Response `200`

The release already existed; its metadata was updated.

- object
  - `release` object, required
    - `id` string, required
    - `projectId` string, required
    - `release` string, required
    - `firstSeen` string, required
    - `lastSeen` string, required
    - `commitSha` string, nullable, required
    - `repoUrl` string, nullable, required
    - `deployedAt` string, nullable, required
    - `previousReleaseId` string, nullable, required
  - `created` boolean, required

## Other responses

- `201`: The release was created for the first time.
- `400`: Invalid body, or a previousRelease that does not exist yet. - `RU-4007` Invalid errors API request: https://realuptime.io/kb/errors/ru-4007 - `RU-4008` Referenced previous release not found: https://realuptime.io/kb/errors/ru-4008
- `401`: Missing, invalid, or revoked API key. - `RU-1001` Missing API credentials: https://realuptime.io/kb/errors/ru-1001 - `RU-1002` Invalid or revoked API key: https://realuptime.io/kb/errors/ru-1002
- `403`: The account does not hold the Errors product. This key is read-only, or this key is IP-restricted and the request came from outside its allowlist. - `RU-4005` Account does not have realuptime errors: https://realuptime.io/kb/errors/ru-4005 - `RU-1004` API key is read-only: https://realuptime.io/kb/errors/ru-1004 - `RU-1007` API key is restricted to an IP allowlist: https://realuptime.io/kb/errors/ru-1007
- `404`: No such project on this account. - `RU-4006` Errors project or issue not found: https://realuptime.io/kb/errors/ru-4006
- `429`: Per-key rate limit exceeded, a Free account's per-account request budget exceeded, or too many failed authentication attempts. - `RU-2003` API write rate limit exceeded: https://realuptime.io/kb/errors/ru-2003 - `RU-2001` Too many failed authentication attempts: https://realuptime.io/kb/errors/ru-2001

---

[API](https://skmtc.dev/realuptime/apis/realuptime-api-v1.md) · [All operations](https://skmtc.dev/realuptime/apis/realuptime-api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/realuptime/apis/realuptime-api-v1/revisions/51e481084700?raw)
