# System Schema APIs

The System Schemas APIs provide endpoints for managing Guardian built-in system schemas, such as Standard Registry, User, Policy, and Token schemas that underpin the platform's own data structures.

**Base URL:** `/api/v1/schemas/system`

***

## Endpoints

| Method       | Endpoint                                | Description                                         | Auth Required |
| ------------ | --------------------------------------- | --------------------------------------------------- | ------------- |
| **`POST`**   | `/schemas/system/{username}`            | Creates a new system schema                         | Yes           |
| **`GET`**    | `/schemas/system/{username}`            | Returns system schemas by username                  | Yes           |
| **`PUT`**    | `/schemas/system/{schemaId}`            | Updates the specified system schema                 | Yes           |
| **`PUT`**    | `/schemas/system/{schemaId}/active`     | Makes the schema active (publishes it)              | Yes           |
| **`DELETE`** | `/schemas/system/{schemaId}`            | Deletes the specified system schema (async)         | Yes           |
| **`GET`**    | `/schemas/system/entity/{schemaEntity}` | Returns the active schema for the given entity type | Yes           |
| **`GET`**    | `/schemas/type/{schemaType}`            | Returns schema by JSON document type string         | Yes           |

***

## Endpoint Details

* [Creates New System Schema](/docs/develop/schemas/system-schemas-apis/creates-new-system-schema.md)
* [Returns Schema by Username](/docs/develop/schemas/system-schemas-apis/returns-schema-by-username.md)
* [Updates the Schema](/docs/develop/schemas/system-schemas-apis/updates-the-schema.md)
* [Publishes the Schema (Make Active)](/docs/develop/schemas/system-schemas-apis/publishes-the-schema.md)
* [Delete System Schema](/docs/develop/schemas/system-schemas-apis/delete-system-schema.md)
* [Returns Schema by Entity Type](/docs/develop/schemas/system-schemas-apis/schema-type.md)
* [Returns Schema by Schema Type](/docs/develop/schemas/system-schemas-apis/returns-schema-by-type.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guardian.hedera.com/docs/develop/schemas/system-schemas-apis.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
