summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2026-05-14 14:14:56 +1000
committerJake Mannens <jake@asger.xyz>2026-05-15 01:09:28 +1000
commita215f834406159f34e28426dadede5eb77f66081 (patch)
tree454b4a4eedf1aba0dca1e6afaa15a7b5a0117afa
parentc632f6ed0ece92f381dbcb2da36ed659f3867285 (diff)
Added API model for tag creation and update requests
-rw-r--r--Tag.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/Tag.cs b/Tag.cs
new file mode 100644
index 0000000..9f3577c
--- /dev/null
+++ b/Tag.cs
@@ -0,0 +1,14 @@
+namespace HyperBooru.ApiModels;
+
+public record TagCreateRequest {
+ public string? Namespace { get; init; }
+ public required string Name { get; init; }
+ public string? Alias { get; init; }
+ public Guid[]? ImplicitTags { get; init; }
+}
+
+public record TagUpdateRequest {
+ public string? Namespace { get; init; }
+ public string? Name { get; init; }
+ public string? Alias { get; init; }
+}