---
title: "POST /v1beta1/{+parent}/sha"
method: POST
path: "/v1beta1/{+parent}/sha"
tags: ["projects"]
---

# POST /v1beta1/{+parent}/sha

`POST /v1beta1/{+parent}/sha`

Adds a ShaCertificate to the specified AndroidApp.

## Path parameters

- `parent` string, required

## Request body

- ShaCertificate — A SHA-1 or SHA-256 certificate associated with the AndroidApp.
  - `certType` 'SHA_CERTIFICATE_TYPE_UNSPECIFIED' | 'SHA_1' | 'SHA_256' — The type of SHA certificate encoded in the hash.
  - `shaHash` string — The certificate hash for the `AndroidApp`.
  - `name` string — The resource name of the ShaCertificate for the AndroidApp, in the format: projects/PROJECT_IDENTIFIER/androidApps/APP_ID/sha/SHA_HASH * PROJECT_IDENTIFIER: the parent Project's [`ProjectNumber`](../projects#FirebaseProject.FIELDS.project_number) ***(recommended)*** or its [`ProjectId`](../projects#FirebaseProject.FIELDS.project_id). Learn more about using project identifiers in Google's [AIP 2510 standard](https://google.aip.dev/cloud/2510). Note that the value for PROJECT_IDENTIFIER in any response body will be the `ProjectId`. * APP_ID: the globally unique, Firebase-assigned identifier for the App (see [`appId`](../projects.androidApps#AndroidApp.FIELDS.app_id)). * SHA_HASH: the certificate hash for the App (see [`shaHash`](../projects.androidApps.sha#ShaCertificate.FIELDS.sha_hash)).

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/firebase.md) · [All operations](https://skmtc.net/google/apis/firebase/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/firebase/versions/c36d3488a21b/schema)
