---
title: "Disposition Chains Layout"
method: POST
path: "/disposition-chains/layout"
tags: ["Dignities & Receptions"]
---

# Disposition Chains Layout

`POST /disposition-chains/layout`

Return disposition chains with computed x/y layout coordinates for graph visualization.

## Request body

- DispositionChains — Natal chart plus the dispositor mode (rulership or detriment) and the ruler set (classical or modern).
  - `date` string, required
  - `time` string, required
  - `timezoneOffset` number, nullable — Hours from UTC at the given moment, not minutes. Fractional zones are hours too: 5.5 for India, 5.75 for Nepal, -3.5 for Newfoundland. Defaults to 0, meaning UTC.
  - `latitude` number, required
  - `longitude` number, required
  - `houseSystem` string
  - `name` string
  - `city` string
  - `zodiacType` 'tropical' | 'sidereal'
  - `ayanamsaId` number, nullable
  - `ayanamsa` 'fagan-bradley' | 'lahiri' | 'de-luce' | 'raman' | 'krishnamurti' | 'kp' | 'yukteshwar' | 'jn-bhasin' | 'true-citra' | 'djwhal-khul' — Sidereal school by name. Lahiri when omitted. Equivalent to ayanamsaId; send either.
  - `cosmogram` boolean
  - `mode` 'rulership' | 'detriment'
  - `rulerMode` 'classical' | 'modern'

## Response `200`

Successful calculation

- object
  - `ok` boolean
  - `data` object
    - `nodes` object[], nullable
      - `planet` string, nullable
      - `x` number, nullable
      - `y` number, nullable
      - `final` boolean, nullable
    - `edges` object[], nullable
      - `from` string, nullable
      - `to` string, nullable

## Other responses

- `400` — Validation error
- `401` — Missing or invalid API key

---

[API](https://skmtc.net/astroway/apis/astroway-calculation-api.md) · [All operations](https://skmtc.net/astroway/apis/astroway-calculation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/astroway/astroway-calculation-api/revisions/6828e5609564/schema)
