---
title: "Update transformation block"
method: POST
path: "/api/organizations/{organizationId}/transformation/{transformationId}"
tags: ["OrganizationBlocks"]
---

# Update transformation block

`POST /api/organizations/{organizationId}/transformation/{transformationId}`

## Request

- Base URL: `https://studio.edgeimpulse.com/v1`
- URL: `https://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/transformation/{transformationId}`
- Auth: one of:
  - API key in header `x-api-key`
  - API key in cookie `jwt`
  - API key in header `x-jwt-token`
  - OAuth 2
    - Authorization code: `/v1/oauth/authorize`
    - Client credentials
    - Implicit: `/v1/oauth/authorize`
    - Password
    - Token URL: `/v1/oauth/token`
- TypeScript: <https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/docs/api/organizations/:organizationId/transformation/:transformationId/post.ts> (a function with typed inputs; its response is checked against the schema)

Updates a transformation block. Only values in the body will be updated.

## Path parameters

- `organizationId` integer, required
- `transformationId` integer, required

## Request body

- UpdateOrganizationTransformationBlockRequest
  - `name` string
  - `dockerContainer` string
  - `indMetadata` boolean: Whether to pass the `--metadata` parameter to the container.
  - `description` string
  - `cliArguments` string
  - `requestsCpu` number
  - `requestsMemory` integer
  - `limitsCpu` number
  - `limitsMemory` integer
  - `additionalMountPoints` TransformationBlockAdditionalMountPoint[]
    - `type` 'bucket' | 'portal', required
    - `bucketId` integer
    - `portalId` integer
    - `mountPoint` string, required
  - `operatesOn` 'file' | 'directory' | 'standalone'
  - `allowExtraCliArguments` boolean
  - `parameters` object[]: List of parameters, spec'ed according to https://docs.edgeimpulse.com/docs/tips-and-tricks/adding-parameters-to-custom-blocks
  - `maxRunningTimeStr` string: 15m for 15 minutes, 2h for 2 hours, 1d for 1 day. If not set, the default is 8 hours.
  - `isPublic` boolean
  - `publicProjectTierAvailability` 'enterprise-only' | 'all-projects' | 'all-projects-including-whitelabels': For public blocks, this indicates the project tiers for which this block is available.
  - `repositoryUrl` string: URL to the source code of this custom learn block.
  - `showInDataSources` boolean: Whether to show this block in 'Data sources'. Only applies for standalone blocks.
  - `showInCreateTransformationJob` boolean: Whether to show this block in 'Create transformation job'. Only applies for standalone blocks.
  - `showInSyntheticData` boolean: Whether to show this block in 'Synthetic data'. Only applies for standalone blocks.
  - `showInAIActions` boolean: Whether to show this block in 'AI Labeling'. Only applies for standalone blocks.
  - `environmentVariables` EnvironmentVariable[]
    - `key` string, required: Environmental variable key. Needs to adhere to regex "^[a-zA-Z_]+[a-zA-Z0-9_]*$".
    - `value` string: If value is left undefined, only the key is passed in as an environmental variable.
  - `aiActionsOperatesOn` AIActionsOperatesOn[]: For AI labeling blocks, this lists the data types that the block supports. If this field is empty then there's no information about supported data types.
  - `sourceCodeDownloadStaffOnly` boolean: Whether the source code is only available for staff users.

## Response `200`

OK

- GenericApiResponse
  - `success` boolean, required: Whether the operation succeeded
  - `error` string: Optional error description (set if 'success' was false)

---

[API](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api.md) - [All operations](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/llms.txt) - [OpenAPI document](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/revisions/e2a976d38427?raw)
