- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Uploads a template. The content can be a previously downloaded template. Performs the same function as templates.create, but accepts input in a string format, which holds the complete representation of the Template content.
HTTP request
POST https://integrations.googleapis.com/v1/{parent=projects/*/locations/*}/templates:upload
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The template to upload. Format: projects/{project}/locations/{location} |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"content": string,
"fileFormat": enum ( |
Fields | |
---|---|
content |
Required. The textproto of the template. |
fileFormat |
Required. File format for upload request. |
Response body
Response for templates.upload.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"template": {
object ( |
Fields | |
---|---|
template |
The uploaded Template |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent
resource:
integrations.templates.create
For more information, see the IAM documentation.