Update a callout template

Updates a callout template. This operation supports updating the callout template for all event types.

Request
path Parameters
id
required
string <uuid>

The ID of the callout template to be updated.

header Parameters
Accept-Encoding
string

Include the Accept-Encoding: gzip header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response.

If specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a Content-Encoding header with the compression algorithm so that your client can decompress it.

Content-Encoding
string

Include the Content-Encoding: gzip header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.

Authorization
required
string

The value is in the Bearer {token} format where {token} is a valid OAuth token generated by calling Create an OAuth token.

Zuora-Track-Id
string <= 64 characters

A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.

The value of this field must use the US-ASCII character set and must not include any of the following characters: colon (:), semicolon (;), double quote ("), and quote (').

Zuora-Entity-Ids
string

An entity ID. If you have Zuora Multi-entity enabled and the OAuth token is valid for more than one entity, you must use this header to specify which entity to perform the operation in. If the OAuth token is only valid for a single entity, or you do not have Zuora Multi-entity enabled, you should not set this header.

Zuora-Org-Ids
string

Comma separated IDs. If you have Zuora Multi-Org enabled, you can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header.

The IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails.

If the header is not set, the operation is performed in scope of the user's accessible orgs.

Request Body schema: application/json
required

The request body to update a callout template.

One of:

Common information for callout templates.

active
boolean
Default: true

The status of the callout.

calloutBaseurl
string <url> >= 10 characters

The callout URL. It must start with https://.

You can add merge fields in the callout URL. For example, https://mywebsite.com/zuora/{{DataSource.Account.Id}}. For more information, see Merge field syntax for email and callout templates.

object (calloutHeader)

Container for custom callout headers. Each custom callout header consists of a header name and a header value.

object (calloutParameter)

Container for callout parameters sent in the request body. Each callout parameter consists of a parameter name and a parameter value.

calloutRetry
boolean
Default: true

Specified whether to retry the callout when the callout fails. The default value is true.

customRequestBody
string

Customized request body. This field is available only for callouts whose Content-Type in the request body is application/json. The value must be in JSON format and double quotes in the value must be escaped.

You can add merge fields to the request body. For example, {\"AccountNumber\": \"{{DataSource.Account.AccountNumber}}\",\"AccountId\": \"{{DataSource.Account.Id}}\"}. For more information, see Merge field syntax for email and callout templates.

You must set useCustomRequestBody to true if you want to customize the callout request body with this field. Alternatively, you can use the calloutParams field.

description
string <= 255 characters

Description for the callout template.

httpMethod
string

The HTTP method of the callout.

Enum: "POST" "GET" "PUT" "PATCH" "DELETE"
name
string <= 255 characters

The name of the callout template. It must be unique across all callout templates.

useCustomRequestBody
boolean

Indicates whether to enable the customized request body configured in the customRequestBody field.

Responses
200

OK

400

Bad Request

404

Not Found

405

Method Not Allowed

415

Unsupported Media Type

500

Internal Server Error

put/notifications/callout-templates/{id}
Request samples
application/json
{}
Response samples
application/json
{
  • "active": true,
  • "calloutAuth": {
    },
  • "calloutBaseurl": "https://***",
  • "calloutHeaders": {
    },
  • "calloutParams": {
    },
  • "calloutRetry": true,
  • "contentType": "string",
  • "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e",
  • "createdOn": "2019-08-24T14:15:22Z",
  • "customRequestBody": "string",
  • "description": "string",
  • "eventCategory": 0,
  • "eventTypeName": "string",
  • "eventTypeNamespace": "user.notification",
  • "httpMethod": "POST",
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "name": "string",
  • "oauth2ProviderId": "string",
  • "requiredAuth": true,
  • "requiredOauth2": true,
  • "updatedBy": "b0efe45f-0520-4e21-90f0-7e35f137732e",
  • "updatedOn": "2019-08-24T14:15:22Z",
  • "useCustomRequestBody": true
}