---
title: "Get deploy block"
method: GET
path: "/api/organizations/{organizationId}/deploy/{deployId}"
tags: ["OrganizationBlocks"]
---

# Get deploy block

`GET /api/organizations/{organizationId}/deploy/{deployId}`

## Request

- Base URL: `https://studio.edgeimpulse.com/v1`
- URL: `https://studio.edgeimpulse.com/v1/api/organizations/{organizationId}/deploy/{deployId}`
- 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/deploy/:deployId/get.ts> (a function with typed inputs; its response is checked against the schema)

Gets a deploy block.

## Path parameters

- `organizationId` integer, required
- `deployId` integer, required

## Response `200`

OK

- GetOrganizationDeployBlockResponse
  - `success` boolean, required: Whether the operation succeeded
  - `error` string: Optional error description (set if 'success' was false)
  - `deployBlock` OrganizationDeployBlock, required
    - `id` integer, required
    - `name` string, required
    - `dockerContainer` string, required
    - `dockerContainerManagedByEdgeImpulse` boolean, required
    - `created` string, date-time, required
    - `createdByUser` CreatedUpdatedByUser
      - `id` integer, required
      - `name` string, required
      - `username` string, required
      - `photo` string
    - `lastUpdated` string, date-time
    - `lastUpdatedByUser` CreatedUpdatedByUser
      - `id` integer, required
      - `name` string, required
      - `username` string, required
      - `photo` string
    - `userId` integer
    - `userName` string
    - `description` string, required
    - `cliArguments` string, required: These arguments are passed into the container
    - `requestsCpu` number
    - `requestsMemory` integer
    - `limitsCpu` number
    - `limitsMemory` integer
    - `photo` string, required
    - `integrateUrl` string
    - `privileged` boolean, required
    - `mountLearnBlock` boolean, required
    - `supportsEonCompiler` boolean, required
    - `showOptimizations` boolean, required
    - `category` 'library' | 'firmware', required
    - `sourceCodeAvailable` boolean, required
    - `sourceCodeDownloadStaffOnly` boolean, required: Whether the source code is only available for staff users.
    - `parameters` object[]: List of parameters, spec'ed according to https://docs.edgeimpulse.com/docs/tips-and-tricks/adding-parameters-to-custom-blocks
    - `parametersUI` DSPGroupItem[]: List of parameters to be rendered in the UI
      - `name` string, required
      - `value` string
      - `defaultValue` string, required
      - `type` string, required
      - `help` string
      - `param` string, required
      - `selectOptions` object[]
        - `value` string: What is the string that will be set if this option is selected?
        - `selected` boolean
        - `optionLabel` string: What is the label that will be shown to the user for this option?
        - `priority` number: The following options are optional. See Learn Block Auto Config in Notion. Higher priority will get chosen based on limits below.
        - `romEstimate` number: Estimated ROM footprint for this choice. Will be tested against ROM budget in Studio.
        - `needsOps` string[]
        - `needsFeatures` string[]
      - `readonly` boolean, required
      - `shouldShow` boolean, required
      - `showIf` object
        - `parameter` string, required
        - `operator` 'eq' | 'neq', required
        - `value` string, required
      - `invalidText` string
      - `section` 'advanced' | 'augmentation' | 'modelProfiling': Interface section to render parameter in.
      - `multiline` boolean: Only valid for type "string". Will render a multiline text area.
      - `required` boolean, required
      - `hint` string: If set, shows a hint below the input.
      - `placeholder` string: Sets the placeholder text on the input element (for types "string", "int", "float" and "secret")
      - `showClickToSet` boolean, required: If enabled, render a disabled input element with 'Click to set'
      - `valid` object[]: Valid values for parameter.
      - `items` object: Recursive definition for items of a parameter with type 'array'.
      - `properties` object: Recursive definition for a parameter with type 'object'.
      - `minVal` number: Minimum value for parameters of type 'int' or 'float'.
      - `maxVal` number: Maximum value for parameters of type 'int' or 'float'.

---

[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)
