> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ownid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set a schema

> Sets a JSON-schema for a specified schema identifier.



## OpenAPI

````yaml post /schema
openapi: 3.1.0
info:
  title: OwnID API
  version: 1.0.0
  description: Server API for integrating with the OwnID
servers:
  - url: https://server.ownid.com/{appId}
security:
  - AdminAccessToken: []
paths:
  /schema:
    post:
      tags:
        - Profile Schema
      summary: Set a schema
      description: Sets a JSON-schema for a specified schema identifier.
      operationId: setSchema
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JSONSchema'
            examples:
              BasicProfileSchema:
                $ref: '#/components/examples/BasicProfileSchema'
      responses:
        '204':
          description: Successfully set the schema.
        '400':
          description: Invalid schema data provided.
      security:
        - AdminAccessToken:
            - schema:write
components:
  schemas:
    JSONSchema:
      type: object
      additionalProperties: true
  examples:
    BasicProfileSchema:
      summary: JSON Schema of a basic Profile
      value:
        type: object
        properties:
          firstName:
            type: string
          lastName:
            type: string
  securitySchemes:
    AdminAccessToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.