LettaAPI.Api.Organization (letta_api v1.0.0)
API calls for all endpoints tagged Organization
.
Summary
Functions
Create Org Create a new org in the database
Get All Orgs Get a list of all orgs in the database
Functions
@spec create_organization( Tesla.Env.client(), LettaAPI.Model.OrganizationCreate.t(), keyword() ) :: {:ok, LettaAPI.Model.Organization.t()} | {:ok, LettaAPI.Model.HttpValidationError.t()} | {:error, Tesla.Env.t()}
Create Org Create a new org in the database
Parameters
connection
(LettaAPI.Connection): Connection to serverorganization_create
(OrganizationCreate):opts
(keyword): Optional parameters
Returns
{:ok, LettaAPI.Model.Organization.t}
on success{:error, Tesla.Env.t}
on failure
@spec delete_organization_by_id(Tesla.Env.client(), String.t(), keyword()) :: {:ok, LettaAPI.Model.Organization.t()} | {:ok, LettaAPI.Model.HttpValidationError.t()} | {:error, Tesla.Env.t()}
Delete Org
Parameters
connection
(LettaAPI.Connection): Connection to serverorg_id
(String.t): The org_id key to be deleted.opts
(keyword): Optional parameters
Returns
{:ok, LettaAPI.Model.Organization.t}
on success{:error, Tesla.Env.t}
on failure
@spec list_orgs( Tesla.Env.client(), keyword() ) :: {:ok, [LettaAPI.Model.Organization.t()]} | {:ok, LettaAPI.Model.HttpValidationError.t()} | {:error, Tesla.Env.t()}
Get All Orgs Get a list of all orgs in the database
Parameters
connection
(LettaAPI.Connection): Connection to serveropts
(keyword): Optional parameters:after
(String.t)::limit
(integer()):
Returns
{:ok, [%Organization{}, ...]}
on success{:error, Tesla.Env.t}
on failure
@spec update_organization( Tesla.Env.client(), String.t(), LettaAPI.Model.OrganizationUpdate.t(), keyword() ) :: {:ok, LettaAPI.Model.Organization.t()} | {:ok, LettaAPI.Model.HttpValidationError.t()} | {:error, Tesla.Env.t()}
Update Org
Parameters
connection
(LettaAPI.Connection): Connection to serverorg_id
(String.t): The org_id key to be updated.organization_update
(OrganizationUpdate):opts
(keyword): Optional parameters
Returns
{:ok, LettaAPI.Model.Organization.t}
on success{:error, Tesla.Env.t}
on failure