# Runs a template script and returns the result.

**POST** `/v1/templates/test`

**Operation ID**: `testTemplate`
**Summary**: Runs a template script and returns the result.
Runs a template script and returns the result. The result should be deserializable to a GreprJobGraph if the 'testDeserialization' parameter is true in the payload.

## Tags
- Templates
## Request Body

Template and input values for the template.

**Content-Type**: `application/json`

**Schema**: `TemplateAndInputs`

## Responses

### 200

Job graph generated successfully

- **Content-Type**: `application/json` / `GreprJobGraph`
### 400

Invalid input

### 401

Unauthorized

### 429

Code generation limit exceeded for bad code. This can happen if the template runs too long or uses too many resources. The organization will be throttled for executing too many bad code generations.
