---
title: "Map an api-entries block in a flow"
method: POST
path: "/flows/{flowId}/api-entries/{blockId}/map"
tags: ["Flows"]
---

# Map an api-entries block in a flow

`POST /flows/{flowId}/api-entries/{blockId}/map`

## Request

- Base URL: `https://api.loopify.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.loopify.com/flows/{flowId}/api-entries/{blockId}/map`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://auth.loopify.com/connect/authorize`, token URL `https://auth.loopify.com/token`, scopes: `User`)

#### Auth policies: User 

 On a successfull POST, a websocket message, containing the jsonBody (first array item if payload is an array), will be sent to the user who called this endpoint. 
### Sample message:

    {
        "type": "flow.apiEntryData",
        "message": "jsonBody"
    }

## Path parameters

- `flowId` string, required
- `blockId` string, required

## Request body

- unknown

## Response `200`

Success

## Other responses

- `400`: 0: Json body is invalid 1: Flow could not be found 2: License issue
- `401`: Unauthorized
- `403`: Forbidden

---

[API](https://skmtc.dev/loopify/apis/web-api-loopify.md) · [All operations](https://skmtc.dev/loopify/apis/web-api-loopify/llms.txt) · [OpenAPI document](https://skmtc.dev/loopify/apis/web-api-loopify/revisions/68c51b11a24b?raw)
