> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateJobRequest

> CreateJobRequest — Kinetica Node.js API

interface CreateJobRequest \{\
&#x20;[data](#data): string;\
&#x20;[data\_str](#data_str): string;\
&#x20;[endpoint](#endpoint): string;\
&#x20;[options](#options)?: Record\<string, string>;\
&#x20;[request\_encoding](#request_encoding)?: string;\
}

<ul>
  <li>Defined in [src/types.ts:1683](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L1683)</li>
</ul>

##### Index

### Properties

[data](#data) [data\_str](#data_str) [endpoint](#endpoint) [options?](#options) [request\_encoding?](#request_encoding)&#x20;

## Properties

### data

data: string

Binary-encoded payload for the job to be run asynchronously. The payload must contain the relevant input parameters for the endpoint indicated in `endpoint`. Please see the documentation for the appropriate endpoint to see what values must (or can) be specified. If this parameter is used, then `request_encoding` must be binary or snappy.

<ul>
  <li>Defined in [src/types.ts:1689](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L1689)</li>
</ul>

### data\_str

data\_str: string

JSON-encoded payload for the job to be run asynchronously. The payload must contain the relevant input parameters for the endpoint indicated in `endpoint`. Please see the documentation for the appropriate endpoint to see what values must (or can) be specified. If this parameter is used, then `request_encoding` must be json.

<ul>
  <li>Defined in [src/types.ts:1691](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L1691)</li>
</ul>

### endpoint

endpoint: string

Indicates which endpoint to execute, e.g. '/alter/table'.

<ul>
  <li>Defined in [src/types.ts:1685](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L1685)</li>
</ul>

### `Optional`options

options?: Record\<string, string>

Optional parameters.

<ul>
  <li>Defined in [src/types.ts:1693](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L1693)</li>
</ul>

### `Optional`request\_encoding

request\_encoding?: string

The encoding of the request payload for the job.

<ul>
  <li>Defined in [src/types.ts:1687](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/types.ts#L1687)</li>
</ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.