# Method: domains.extendSchema

- [HTTP request](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.domains/extendSchema#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.domains/extendSchema#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.domains/extendSchema#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.domains/extendSchema#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.domains/extendSchema#body.response_body)
- [Authorization Scopes](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.domains/extendSchema#body.aspect)
- [Try it!](https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/v1/projects.locations.global.domains/extendSchema#try-it)

**Full name**: projects.locations.global.domains.extendSchema

Extend Schema for Domain

### HTTP request

`POST https://managedidentities.googleapis.com/v1/{domain=projects/*/locations/global/domains/*}:extendSchema`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `domain` | `string` Required. The domain resource name using the form: `projects/{projectId}/locations/global/domains/{domainName}` Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `domain`: - `managedidentities.domains.extendSchema` |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "description": string, // Union field `ldif_source` can be only one of the following: "gcsPath": string, "fileContents": string // End of list of possible types for union field `ldif_source`. } ``` |

| Fields ||
|---|---|
| `description` | `string` Required. Description for Schema Change. |
| Union field `ldif_source`. Required The LDIF file input for Schema Extension can be derived from any one of the given sources. `ldif_source` can be only one of the following: ||
| `gcsPath` | `string` File stored in Cloud Storage bucket and represented in the form projects/{projectId}/buckets/{bucket_name}/objects/{object_name} File should be in the same project as the domain. |
| `fileContents` | `string (https://developers.google.com/discovery/v1/type-format format)` File uploaded as a byte stream input. A base64-encoded string. |

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/managed-microsoft-ad/reference/rest/Shared.Types/ListOperationsResponse#Operation`.

### Authorization Scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).