# Method: projects.locations.customConnectors.validateCustomConnectorSpec

- [HTTP request](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.customConnectors/validateCustomConnectorSpec#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.customConnectors/validateCustomConnectorSpec#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.customConnectors/validateCustomConnectorSpec#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.customConnectors/validateCustomConnectorSpec#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.customConnectors/validateCustomConnectorSpec#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.customConnectors/validateCustomConnectorSpec#body.ValidateCustomConnectorSpecResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.customConnectors/validateCustomConnectorSpec#body.aspect)
- [Try it!](https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.customConnectors/validateCustomConnectorSpec#try-it)

Validates a Custom Connector Spec.

### HTTP request

`POST https://connectors.googleapis.com/v1/{parent=projects/*/locations/*}/customConnectors:validateCustomConnectorSpec`

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

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Required. Location at which the custom connector is being created. |

### Request body

The request body contains data with the following structure:

| JSON representation |
|---|
| ``` { "specLocation": string, "specType": enum (`https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.global.customConnectors#CustomConnectorType`), "serviceAccount": string } ``` |

| Fields ||
|---|---|
| `specLocation` | `string` Required. Location of the custom connector spec. The location can be either a public url like `https://public-url.com/spec` Or a Google Cloud Storage location like `gs://<BUCKET_NAME>/<OBJECT_NAME>` |
| `specType` | ``enum (`https://docs.cloud.google.com/integration-connectors/docs/reference/rest/v1/projects.locations.global.customConnectors#CustomConnectorType`)`` Required. Spec type of the custom connector spec. |
| `serviceAccount` | `string` Required. Service account to access the spec from Google Cloud Storage. |

### Response body

Response message for ConnectorsService.ValidateCustomConnectorSpec

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "errorMessage": string } ``` |

| Fields ||
|---|---|
| `errorMessage` | `string` Error message. The spec is valid if the error message is empty. |

### Authorization scopes

Requires the following OAuth scope:

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

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