Method: projects.locations.inputs.create

Creates an input with the provided unique ID in the specified region.

HTTP request

POST https://livestream.googleapis.com/v1/{parent=projects/*/locations/*}/inputs

The URL usesgRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent location for the resource, in the form of:projects/{project}/locations/{location}.

Query parameters

Parameters
inputId

string

Required. The ID of the input resource to be created.

This value must be 1-63 characters, begin and end with a lower-case letter or a number, and consist of only lower-case letters, numbers, and hyphens. In other words, it must match the following regex:^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$.

requestId

string

A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is not supported(00000000-0000-0000-0000-000000000000).

Request body

The request body contains an instance ofInput.

Response body

If successful, the response body contains a newly created instance ofOperation.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see theAuthentication Overview.

IAM Permissions

Requires the followingIAM permission on theparent resource:

  • livestream.inputs.create

For more information, see theIAM documentation.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-09-10 UTC.