---
title: "Get schema by URN"
method: GET
path: "/Schemas/{urn}"
tags: ["Discovery"]
---

# Get schema by URN

`GET /Schemas/{urn}`

Use this endpoint to get the resource type schema corresponding to the provided URN.

## Path parameters

- `urn` string, required

## Response `200`

Returns a resource type schema corresponding to the provided URN.

- ResourceTypeSchema — Resource type schema available on the SCIM service provider.
  - `attributes` AttributeSchema[], required
    - `canonicalValues` string[], nullable — A collection of suggested canonical values that MAY be used.
    - `caseExact` boolean — A Boolean value that specifies whether or not a string attribute is case sensitive.
    - `description` string — The attribute's human-readable description.
    - `multiValued` boolean — A Boolean value indicating the attribute's plurality.
    - `mutability` 'readOnly' | 'readWrite' | 'immutable' | 'writeOnly' — A single keyword indicating the circumstances under which the value of the attribute can be (re)defined.
    - `name` string — The attribute's name.
    - `referenceTypes` string[], nullable — A multi-valued array of JSON strings that indicate the SCIM resource types that may be referenced.
    - `required` boolean — Specifies whether or not the attribute is required.
    - `returned` 'always' | 'never' | 'default' | 'request' — A single keyword that indicates when an attribute and associated values are returned in response to a GET request or in response to a PUT, POST, or PATCH request.
    - `subAttributes` SubAttributeSchema[]
      - `canonicalValues` string[], nullable — A collection of suggested canonical values that MAY be used.
      - `caseExact` boolean — A Boolean value that specifies whether or not a string attribute is case sensitive.
      - `description` string — The attribute's human-readable description.
      - `multiValued` boolean — A Boolean value indicating the attribute's plurality.
      - `mutability` 'readOnly' | 'readWrite' | 'immutable' | 'writeOnly' — A single keyword indicating the circumstances under which the value of the attribute can be (re)defined
      - `name` string — The attribute's name.
      - `referenceTypes` string[], nullable — A multi-valued array of JSON strings that indicate the SCIM resource types that may be referenced.
      - `required` boolean — Specifies whether or not the attribute is required.
      - `returned` 'always' | 'never' | 'default' | 'request' — A single keyword that indicates when an attribute and associated values are returned in response to a GET request or in response to a PUT, POST, or PATCH request.
      - `type` string — The attribute's data type. Valid values are 'string', 'boolean', 'decimal', 'integer', 'dateTime', 'reference', and 'complex'.
      - `uniqueness` 'none' | 'server' | 'global' — A single keyword value that specifies how the service provider enforces uniqueness of attribute values.
    - `type` string — The attribute's data type. Valid values are 'string', 'boolean', 'decimal', 'integer', 'dateTime', 'reference', and 'complex'.
    - `uniqueness` 'none' | 'server' | 'global' — A single keyword value that specifies how the service provider enforces uniqueness of attribute values.
  - `description` string, required — The schema's human-readable description.
  - `id` string, required — The unique URI of the schema.
  - `meta` object, required — An object containing resource metadata properties.
    - `location` string — The URI of the resource being returned.
    - `resourceType` string — The name of the resource type of the resource.
  - `name` string, required — The schema's human-readable name.

## Other responses

- `404` — A required entity is missing.

---

[API](https://skmtc.net/oneflow/apis/public-api-for-oneflow.md) · [All operations](https://skmtc.net/oneflow/apis/public-api-for-oneflow/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/oneflow/public-api-for-oneflow/versions/0e73a45dec15/schema)
