# Create a new function dev bundle

> Create a new function dev bundle.

POST

/functions/{function\_api\_name}/dev\_bundles/

Creates a function development bundle and returns its ID and details.

#### Helpful resources

-   [Get started with functions](https://developer.rippling.com/documentation/rippling-platform/developer/functions/getting-started)
-   [Create and manage functions](https://developer.rippling.com/documentation/rest-api/guides/functions)

### Required Scopes

-   functions.read-write
    

### Request

Path Parameters

**function\_api\_name** string required

The API name of the function.

-   application/json

**Body**

## Responses

-   200
-   400
-   401
-   403
-   503

Successful response

-   application/json

-   Schema
-   Example (from schema)

**Schema**

**\_\_meta** object

**redacted\_fields** object\[\]

Array \[

**name** string

The name for the redacted field

**reason** string

The reason for the redaction

\]

**contents** string

The bundle contents as a base64 encoded zip

```json
{
  "__meta": {
    "redacted_fields": [
      {
        "name": "date_of_birth",
        "reason": "Insufficient entitlements"
      }
    ]
  },
  "contents": "string"
}
```

The request failed validation. The response body describes the error.

-   application/json

-   Schema
-   Example (from schema)

**Schema**

**detail** string

A human-readable explanation of why the request failed.

```json
{
  "detail": "string"
}
```

Authentication is required or the supplied credentials are invalid.

-   application/json

-   Schema
-   Example (from schema)

**Schema**

-   Matches one or more of these formats:
    
    1.  **Format 1**
        
        **ok** boolean required
        
        Whether the request succeeded. Always false for an authentication error.
        
        **Possible values:** \[false\]
        
        **error** string required
        
        A human-readable explanation of why authentication failed.
        
    2.  **Format 2**
        
        **detail** string required
        
        A human-readable explanation of the authentication error.
        

**Format 1**

```json
{
  "ok": false,
  "error": "Incorrect authentication credentials."
}
```

**Format 2**

```json
{
  "detail": "string"
}
```

The caller is not authorized to perform this action.

-   application/json

-   Schema
-   Example (from schema)

**Schema**

**detail** string

A human-readable explanation of why the request failed.

```json
{
  "detail": "string"
}
```

An internal service error prevented the development preview from starting. Retry the preview request later.

-   application/json

-   Schema
-   Example (from schema)

**Schema**

**message** string required

Human-readable explanation of the error.

```json
{
  "message": "string"
}
```

Source: https://developer.rippling.com/documentation/rest-api/reference/create-functions-function-api-name-dev-bundles

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
