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

Updates #4570

Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
Maisem Ali 2022-10-19 09:36:08 -07:00 committed by Maisem Ali
parent e966f024b0
commit d0b7a44840
1 changed files with 6 additions and 1 deletions

7
api.md
View File

@ -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
}
```