# Create a test environment notification

Use this operation to create a new notification
for a specific Test Environment. It handles HTTP
POST requests to the /test-environments/{id}/notifications
endpoint, accepting a TestEnvironmentNotificationRequest
object in the request body. Upon successful creation,
it returns a TestEnvironmentNotificationResponse object
and sets the Location header to the URL of the created
notification.
### User Access Permission
You must be assigned the **Refresh Central Sandbox** permission to run this operation.

Endpoint: POST /test-environments/{id}/notifications
Version: 2026-11-06
Security: bearerAuth

## Description:

  - `User Access Permission` ()
    You must be assigned the **Refresh Central Sandbox** permission to run this operation.

## Security:

  - `bearerAuth` (unknown)
    http bearer

## Path parameters:

  - `id` (string, required)
    Test Environment ID

## Header parameters:

  - `Zuora-Entity-Ids` (string)
    An entity ID. If you have [Zuora Multi-entity](https://docs.zuora.com?resourceId=platform-multi-entity-overview) 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-Track-Id` (string)
    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 (`'`).

  - `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.

## Request body:

  - `application/json` (unknown)
    notificationRequest

## Request fields (application/json):

  - `address` (string)
    The email address to receive notifications for the Test Environment when a refresh job has been completed or cancelled
    Example: john.smith@zuora.com

  - `name` (string)
    The name of the recipient who will receive notifications for the Test Environment
    Example: John Smith

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json):

  - `address` (string)
    The email address to receive notifications for the Test Environment when a refresh job has been completed or cancelled
    Example: john.smith@zuora.com

  - `id` (string)
    The unique id (UUID) of the Test Environment notification
    Example: 11111111-1111-1111-1111-111111111111

  - `name` (string)
    The name of the recipient who will receive notifications for the Test Environment
    Example: John Smith

  - `testEnvironmentId` (string)
    The unique id (UUID) of the Test Environment
    Example: 11111111-1111-1111-1111-111111111111

## Response 201:

  - `201` (unknown)
    Successfully created a new Test Environment notification

## Response 201 fields (application/json):

  - `address` (string)
    The email address to receive notifications for the Test Environment when a refresh job has been completed or cancelled
    Example: john.smith@zuora.com

  - `id` (string)
    The unique id (UUID) of the Test Environment notification
    Example: 11111111-1111-1111-1111-111111111111

  - `name` (string)
    The name of the recipient who will receive notifications for the Test Environment
    Example: John Smith

  - `testEnvironmentId` (string)
    The unique id (UUID) of the Test Environment
    Example: 11111111-1111-1111-1111-111111111111

## Response 400:

  - `400` (unknown)
    Bad request

## Response 500:

  - `500` (unknown)
    Internal Error

