This repository has no description
1{
2 "lexicon": 1,
3 "id": "org.tangled.temp.site.claimDomain",
4 "defs": {
5 "main": {
6 "type": "procedure",
7 "description": "Claim a subdomain under the sites domain (e.g. 'alice' → alice.sites.tangled.sh) for the authenticated user.",
8 "input": {
9 "encoding": "application/json",
10 "schema": {
11 "type": "object",
12 "required": ["subdomain"],
13 "properties": {
14 "subdomain": {
15 "type": "string",
16 "description": "Desired subdomain label (lowercase letters, digits, and hyphens; 4–63 characters)."
17 }
18 }
19 }
20 },
21 "errors": [
22 { "name": "DomainTaken", "description": "That subdomain is already claimed by another user." },
23 { "name": "DomainCooldown", "description": "That subdomain was recently released and is in a cooldown period." },
24 { "name": "AlreadyClaimed", "description": "You already have a domain claimed. Release it before claiming a new one." },
25 { "name": "InvalidSubdomain", "description": "The subdomain label is invalid." }
26 ]
27 }
28 }
29}