---
title: "Create a custom entry state"
method: POST
path: "/orgs/{orgId}/entryStates"
tags: ["orgs/entryStates"]
---

# Create a custom entry state

`POST /orgs/{orgId}/entryStates`

__JWT is required for this endpoint with at least one of the following scopes__: o{params.orgId}-site:w,o{params.orgId}-entryState:w,o:w,s-o:w<br/><br/>__Endpoint name__: createEntryState

## Path parameters

- `orgId` integer, required

## Request body

- object
  - `name` string, required
  - `description` string, required
  - `isLocked` boolean, required
  - `secondFactorTimeoutSeconds` integer, nullable
  - `isToggle` boolean

## Response `201`

Created

- object
  - `data` object
    - `id` number, required
    - `ordinal` number
    - `name` string
    - `code` string
    - `description` string
    - `isLocked` boolean
    - `isToggle` boolean
    - `orgId` number, nullable
    - `isMultiFactor` boolean
    - `triggerMethods` object[]
      - `id` number, required
      - `code` string
      - `connectionTypeCode` string
      - `requestTypeCode` string
      - `credentialType` object
        - `id` number, required
        - `modelName` string
    - `secondFactorTriggerMethods` object[]
      - `id` number, required
      - `code` string
      - `connectionTypeCode` string
      - `requestTypeCode` string
      - `credentialType` object
        - `id` number, required
        - `modelName` string
    - `triggerMethodCount` integer
    - `secondFactorTriggerMethodCount` integer
    - `secondFactorTimeoutSeconds` integer, nullable
    - `uniqueTriggerMethodCount` integer
  - `meta` object
    - `accessToken` object, nullable
      - `scopeUpdatedAt` string, date
    - `siteSpecificAccess` object, nullable
      - `isSiteSpecific` boolean
      - `siteIds` integer[], nullable
      - `siteIdsByScope` object, nullable
        - `string` integer[], nullable

---

[API](https://skmtc.net/openpath/apis/openpath-api-documentation.md) · [All operations](https://skmtc.net/openpath/apis/openpath-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openpath/openpath-api-documentation/versions/d8a888c114fa/schema)
