curl --request POST \
--url http://localhost:3000/organizations/{orgId}/undo-deletion \
--header 'Authorization: Bearer <token>'{
"statusCode": 123,
"message": "OK",
"data": {
"statusCode": 123,
"message": "OK",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"billing_email": "jsmith@example.com",
"created_at": "2023-11-07T05:31:56Z",
"metadata": {},
"deleted_at": "2023-11-07T05:31:56Z",
"plan_id": "<string>",
"flag_count": 0,
"project_count": 0,
"environment_count": 0,
"trial_starts_at": "2023-11-07T05:31:56Z",
"trial_ends_at": "2023-11-07T05:31:56Z",
"current_period_end": "2023-11-07T05:31:56Z",
"subscription_status": "trialing",
"api_usage": 0,
"has_used_paid_trial": false
}
}
}Cancels a scheduled deletion and restores the organization to active status. Only works if deletion hasn’t been executed yet. Requires org admin access.
curl --request POST \
--url http://localhost:3000/organizations/{orgId}/undo-deletion \
--header 'Authorization: Bearer <token>'{
"statusCode": 123,
"message": "OK",
"data": {
"statusCode": 123,
"message": "OK",
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"billing_email": "jsmith@example.com",
"created_at": "2023-11-07T05:31:56Z",
"metadata": {},
"deleted_at": "2023-11-07T05:31:56Z",
"plan_id": "<string>",
"flag_count": 0,
"project_count": 0,
"environment_count": 0,
"trial_starts_at": "2023-11-07T05:31:56Z",
"trial_ends_at": "2023-11-07T05:31:56Z",
"current_period_end": "2023-11-07T05:31:56Z",
"subscription_status": "trialing",
"api_usage": 0,
"has_used_paid_trial": false
}
}
}