---
title: "PATCH /v1/apps/{appsId}/domainMappings/{domainMappingsId}"
method: PATCH
path: "/v1/apps/{appsId}/domainMappings/{domainMappingsId}"
tags: ["apps"]
---

# PATCH /v1/apps/{appsId}/domainMappings/{domainMappingsId}

`PATCH /v1/apps/{appsId}/domainMappings/{domainMappingsId}`

Updates the specified domain mapping. To map an SSL certificate to a domain mapping, update certificate_id to point to an AuthorizedCertificate resource. A user must be authorized to administer the associated domain in order to update a DomainMapping resource.

## Path parameters

- `appsId` string, required
- `domainMappingsId` string, required

## Query parameters

- `updateMask` string

## Request body

- DomainMapping — A domain serving an App Engine application.
  - `id` string — Relative name of the domain serving the application. Example: example.com.
  - `name` string — Output only. Full path to the DomainMapping resource in the API. Example: apps/myapp/domainMapping/example.com.@OutputOnly
  - `sslSettings` SslSettings — SSL configuration for a DomainMapping resource.
    - `certificateId` string — ID of the AuthorizedCertificate resource configuring SSL for the application. Clearing this field will remove SSL support.By default, a managed certificate is automatically created for every domain mapping. To omit SSL support or to configure SSL manually, specify SslManagementType.MANUAL on a CREATE or UPDATE request. You must be authorized to administer the AuthorizedCertificate resource to manually map it to a DomainMapping resource. Example: 12345.
    - `sslManagementType` 'SSL_MANAGEMENT_TYPE_UNSPECIFIED' | 'AUTOMATIC' | 'MANUAL' — SSL management type for this domain. If AUTOMATIC, a managed certificate is automatically provisioned. If MANUAL, certificate_id must be manually specified in order to configure SSL for this domain.
    - `pendingManagedCertificateId` string — Output only. ID of the managed AuthorizedCertificate resource currently being provisioned, if applicable. Until the new managed certificate has been successfully provisioned, the previous SSL state will be preserved. Once the provisioning process completes, the certificate_id field will reflect the new managed certificate and this field will be left empty. To remove SSL support while there is still a pending managed certificate, clear the certificate_id field with an UpdateDomainMappingRequest.@OutputOnly
  - `resourceRecords` ResourceRecord[] — Output only. The resource records required to configure this domain mapping. These records must be added to the domain's DNS configuration in order to serve the application via this domain mapping.@OutputOnly
    - `name` string — Relative name of the object affected by this record. Only applicable for CNAME records. Example: 'www'.
    - `rrdata` string — Data for this record. Values vary by record type, as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).
    - `type` 'RECORD_TYPE_UNSPECIFIED' | 'A' | 'AAAA' | 'CNAME' — Resource record type. Example: AAAA.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/appengine.md) · [All operations](https://skmtc.dev/google/apis/appengine/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/appengine/revisions/ee6b3d5f5200/schema)
