> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/release-notes/cloudeka-api/ai-deka-registry/create-tag-rule.md).

# Create tag rule

Creates a tag rule for a registry.

```json
{"openapi":"3.1.1","info":{"title":"Cloudeka AI - API Documentation","version":"1.0.0"},"tags":[{"name":"AI Deka Registry","description":"API endpoints for AI Deka Registry (base: /core/dekaregistry)"}],"servers":[{"url":"https://ai.cloudeka.id/"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"description":"Type 'Bearer ' followed by your JWT token. Example: \"Bearer eyJhbGciOi...\"","type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"ai_dekaregistry__gin_utils.MessageResponse":{"type":"object","properties":{"message":{"type":"string"}}},"ai_dekaregistry__tag_controller.Rule":{"type":"object","properties":{"repo_operation":{"type":"string"},"repo_pattern":{"type":"string"},"tag_operation":{"type":"string"},"tag_pattern":{"type":"string"}}}}},"paths":{"/core/dekaregistry/v2/tag/{registry_id}":{"post":{"description":"Creates a tag rule for a registry.","tags":["AI Deka Registry","Tag"],"summary":"Create tag rule","parameters":[{"schema":{"type":"string","format":"uuid"},"description":"Registry ID","name":"registry_id","in":"path","required":true}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"string"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_dekaregistry__gin_utils.MessageResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_dekaregistry__gin_utils.MessageResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_dekaregistry__gin_utils.MessageResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_dekaregistry__gin_utils.MessageResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_dekaregistry__tag_controller.Rule"}}},"description":"Repository and tag matching rule","required":true}}}}}
```
