---
title: "Add Logicode File"
method: POST
path: "/v1/accounts/{account_id}/environments/{environment_id}/logicode_file"
tags: ["Logicode"]
---

# Add Logicode File

`POST /v1/accounts/{account_id}/environments/{environment_id}/logicode_file`

## Request

- Base URL: `https://api.rivery.io`
- URL: `https://api.rivery.io/v1/accounts/{account_id}/environments/{environment_id}/logicode_file`
- Auth: HTTP bearer

**Authorization scope:** `data flow:write` 
 
 **Add a logicode file to the account id and environment id.**

## Path parameters

- `account_id` string, required
- `environment_id` string, required

## Request body

- CreateLogicodeFileInput: The input for the logicode file
  - `file_name` string, required: The logicode file name

## Response `201`

Successful Response

- CreateFileResponse: The response for the create file
  - `file_id` string, required: The file id
  - `url` string, required: The presigned url for the file. With this URL you can update the file content.

## Other responses

- `422`: Validation Error

## Changes

> 732 revisions in range; 2 not diffed.

- **2026-10-24** `00b90942c8d6`: 1 info
  - endpoint added
- **2026-10-24** `0a8241f415c4`: 1 breaking
  - api path removed without deprecation
- **2026-08-06** `ddd6b1c27983`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rivery/apis/boomi-data-integration-api/changes/v1/accounts/:account_id/environments/:environment_id/logicode_file/post.md)

---

[API](https://skmtc.dev/rivery/apis/boomi-data-integration-api.md) - [All operations](https://skmtc.dev/rivery/apis/boomi-data-integration-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rivery/apis/boomi-data-integration-api/revisions/be7eecd1625c?raw)
