- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization Scopes
- Try it!
Creates a specified spec.
HTTP request
POST https://apigeeregistry.googleapis.com/v1/{parent=projects/*/locations/*/apis/*/versions/*}/specs
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The parent, which owns this collection of specs. Format: |
Query parameters
Parameters | |
---|---|
apiSpecId |
Required. The ID to use for the spec, which will become the final component of the spec's resource name. This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/. Following AIP-162, IDs must not have the form of a UUID. |
Request body
The request body contains an instance of ApiSpec
.
Response body
If successful, the response body contains a newly created instance of ApiSpec
.
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform