- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
Create an apiOperation in an API version. An apiOperation can be created only if the version has no apiOperations which were created by parsing a spec.
HTTP request
POST https://apihub.googleapis.com/v1/{parent=projects/*/locations/*/apis/*/versions/*}/operations
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
| parent | 
 Required. The parent resource for the operation resource. Format:  | 
Query parameters
| Parameters | |
|---|---|
| apiOperationId | 
 Optional. The ID to use for the operation resource, which will become the final component of the operation's resource name. This field is optional. 
 This value should be 4-500 characters, overall resource name which will be of format  | 
Request body
The request body contains an instance of ApiOperation.
Response body
If successful, the response body contains a newly created instance of ApiOperation.
Authorization scopes
Requires the following OAuth scope:
- https://www.googleapis.com/auth/cloud-platform
IAM Permissions
Requires the following IAM permission on the parent resource:
- apihub.apiOperations.create
For more information, see the IAM documentation.