Browse Source

api.md: add expirySeconds as parameter to post Tailnet keys

Updates #4570

Signed-off-by: Maisem Ali <[email protected]>
Maisem Ali 3 years ago
parent
commit
d0b7a44840
1 changed files with 6 additions and 1 deletions
  1. 6 1
      api.md

+ 6 - 1
api.md

@@ -820,6 +820,10 @@ Supply the tailnet in the path.
 
 ###### POST Body
 `capabilities` - A mapping of resources to permissible actions.
+
+`expirySeconds` - (Optional) How long the key is valid for in seconds.
+                  Defaults to 90d.
+
 ```
 {
   "capabilities": {
@@ -833,7 +837,8 @@ Supply the tailnet in the path.
         ]
       }
     }
-  }
+  },
+  "expirySeconds": 1440
 }
 ```