Download OpenAPI specification:Download
The management API for Konnect Organization Lifecycle.
Sets a new state for an organization and creates an organization state history record. An organization can be set to active or inactive.
The request schema to set an organization's state.
| state required | string Enum: "active" "inactive" "deleting" "deleted" The state of the organization to set. |
| reason | string The reason for the state change. |
| changed_by | string The uuid of the konger who modified the state. |
{- "state": "inactive",
- "reason": "invoice overdue (30 days)",
- "changed_by": "00uerwcs8eC4ifanR256"
}{- "id": "d99c041a-c7cf-46a2-bf3a-44bb5f75400e",
- "state": "active",
- "reason": "invoice overdue (30 days)",
- "service": "kadmin",
- "changed_by": "00uerwcs8eC4ifanR256",
- "created_at": "2023-01-18T11:35:45.130Z"
}Returns the state history of an organization sorted in reverse chronological order. Possible states include active, inactive, deleting, and deleted. An organization state will be transitioned to the deleting state if the organization remains inactive for 90 days. After deletion is complete, the state will be transitioned to the final deleted state.
{- "meta": {
- "page": {
- "number": 1,
- "size": 2,
- "total": 2
}
}, - "data": [
- {
- "id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
- "state": "inactive",
- "service": "kadmin",
- "reason": "invoice overdue (30 days)",
- "changed_by": "00uerwcs8eC4ifanR256",
- "created_at": "2022-09-25T13:00:00.00Z"
}, - {
- "id": "7f9fd312-a987-4628-b4c5-bb4f4fddd5f8",
- "state": "active",
- "service": "kauth",
- "created_at": "2021-09-25T13:00:00.00Z"
}
]
}Sets the deletion configs for a specified organization. The retention period is the number of days an organization can remain in the inactive state before being permanently deleted.
| organizationId required | string <uuid> Example: d32d905a-ed33-46a3-a093-d8f536af9a8a The ID of the organization being patched. |
The request schema to set an organization's retention period.
| retention_period_days | integer [ 1 .. 365 ] The retention period in days. |
{- "retention_period_days": 90
}{- "retention_period_days": 90
}