tenants_tenants_create_recovery_key_create
POST/api/v3//tenants/tenants/:tenant_uuid/create_recovery_key/
Create recovery key for user.
Request
Path Parameters
tenant_uuid uuidrequired
A UUID string identifying this Tenant.
- application/json
Body
required
user stringrequired
Possible values: non-empty
duration_days integerrequired
Responses
- 200
- 400
- 403
- 404
- application/json
- Schema
- Example (from schema)
Schema
expiry date-timerequired
url stringrequired
{
"expiry": "2024-07-29T15:51:28.071Z",
"url": "string"
}
Bad request
- application/json
- Schema
- Example (from schema)
Schema
detail stringrequired
code string
{
"detail": "string",
"code": "string"
}
User not found
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L '/api/v3/tenants/tenants/:tenant_uuid/create_recovery_key/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"user": "string",
"duration_days": 0
}'