{"files":{"SKILL.md":"---\nname: lexicon-schemas-api\ndescription: \"Lexicon Schemas API skill. Use when working with Lexicon Schemas for projects. Covers 8 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# Lexicon Schemas API\nAPI version: 1.0.0\n\n## Auth\nNo authentication required.\n\n## Base URL\nNot specified.\n\n## Setup\n1. No auth setup needed\n2. GET /projects/{projectId}/schemas -- list schemas\n3. POST /projects/{projectId}/schemas -- create first schema\n\n## Endpoints\n8 endpoints across 1 group. See references/api-spec.lap for full details.\n\n### Projects\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /projects/{projectId}/schemas | List Schemas |\n| POST | /projects/{projectId}/schemas | Create/Replace Multiple |\n| DELETE | /projects/{projectId}/schemas | Delete all Schemas |\n| GET | /projects/{projectId}/schemas/{entityType} | List for Entity |\n| DELETE | /projects/{projectId}/schemas/{entityType} | Delete for Entity |\n| GET | /projects/{projectId}/schemas/{entityType}/{name} | List for Entity and Name |\n| DELETE | /projects/{projectId}/schemas/{entityType}/{name} | Delete for Entity and Name |\n| POST | /projects/{projectId}/schemas/{entityType}/{name} | Create/Replace One |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"List all schemas?\" -> GET /projects/{projectId}/schemas\n- \"Create a schema?\" -> POST /projects/{projectId}/schemas\n- \"Get schema details?\" -> GET /projects/{projectId}/schemas/{entityType}\n- \"Delete a schema?\" -> DELETE /projects/{projectId}/schemas/{entityType}\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Create/update endpoints return the modified resource on success\n- Error responses include status codes and descriptions in the spec\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api Lexicon Schemas API\n@version 1.0.0\n@endpoints 8\n@toc projects(8)\n\n@endpoint GET /projects/{projectId}/schemas\n@desc List Schemas\n@returns(200) {results: [map], status: str} # Success\n@errors {401, 403}\n\n@endpoint POST /projects/{projectId}/schemas\n@desc Create/Replace Multiple\n@required {entries: [map{entityType!: str, name!: str, schemaJson!: map}] # The list of schema entries to upload}\n@optional {truncate: bool=false # If true, delete your entire data dictionary before inserting these entries. This is primarily useful if you want to upload a single file that represents your entire data dictionary.}\n@returns(200) {results: map{added: int, deleted: int}, status: str} # Success\n@errors {401, 403}\n\n@endpoint DELETE /projects/{projectId}/schemas\n@desc Delete all Schemas\n@returns(200) {results: map{delete_count: int}, status: str} # Success\n@errors {401, 403}\n\n@endpoint GET /projects/{projectId}/schemas/{entityType}\n@desc List for Entity\n@returns(200) {results: [map], status: str} # Success\n@errors {401, 403}\n\n@endpoint DELETE /projects/{projectId}/schemas/{entityType}\n@desc Delete for Entity\n@returns(200) {results: map{delete_count: int}, status: str} # Success\n@errors {401, 403}\n\n@endpoint GET /projects/{projectId}/schemas/{entityType}/{name}\n@desc List for Entity and Name\n@returns(200) {description: str, properties: map, metadata: map{com.mixpanel: map{$source: str, displayName: str, tags: [str], hidden: bool, dropped: bool, contacts: [str], teamContacts: [str]}}} # Success\n@errors {401, 403}\n\n@endpoint DELETE /projects/{projectId}/schemas/{entityType}/{name}\n@desc Delete for Entity and Name\n@returns(200) {results: map{delete_count: int}, status: str} # Success\n@errors {401, 403}\n\n@endpoint POST /projects/{projectId}/schemas/{entityType}/{name}\n@desc Create/Replace One\n@optional {description: str # The entity description, properties: map # The list of properties that should be included on an instance of this entity, metadata: map{com.mixpanel: map}}\n@returns(200) {status: str} # Success\n@errors {400, 401, 403}\n\n@end\n"}}