> For the complete documentation index, see [llms.txt](https://hexpandify.gitbook.io/hexpandify-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hexpandify.gitbook.io/hexpandify-docs/api-docs/hex.md). Agents can also search and read this documentation through its [MCP server](https://hexpandify.gitbook.io/hexpandify-docs/~gitbook/mcp).

# Hex

## POST /api/v1/hex/metadata

> Create or update hexagon metadata

```json
{"openapi":"3.0.0","info":{"title":"Hexpandify API - Hex Management","version":"1.0.0"},"servers":[{"url":"http://app.hexpandify.com","description":"Production server"},{"url":"http://localhost:8080","description":"Local development"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"schemas":{"HexMetadata":{"type":"object","required":["hexKey","displayName","shortName"],"properties":{"hexKey":{"type":"string","maxLength":100,"description":"Unique identifier for the hex (will be converted to lowercase)"},"displayName":{"type":"string","maxLength":100,"description":"Full display name"},"shortName":{"type":"string","maxLength":10,"description":"Abbreviated name"},"description":{"type":"string","description":"Detailed description"},"status":{"type":"boolean","default":true,"description":"Hex status"},"visibility":{"type":"string","enum":["PRIVATE","PUBLIC","OBFUSCATED"],"default":"PRIVATE","description":"Visibility level"},"hexStartDate":{"type":"string","format":"date","description":"Start date for the hex"},"hexEndDate":{"type":"string","format":"date","description":"End date for the hex"}}}}},"paths":{"/api/v1/hex/metadata":{"post":{"summary":"Create or update hexagon metadata","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HexMetadata"}}}},"responses":{"200":{"description":"Successful operation","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"status":{"type":"string"}}}}}}}}}}}
```
