LettaAPI.Api.Admin (letta_api v1.0.0)
API calls for all endpoints tagged Admin.
Summary
Functions
Create Org Create a new org in the database
Create Org Create a new org in the database
Create User Create a new user in the database
Create User Create a new user in the database
Delete User
Delete User
Get All Orgs Get a list of all orgs in the database
Get All Orgs Get a list of all orgs in the database
List Tags Get a list of all tags in the database
List Tags Get a list of all tags in the database
List Users Get a list of all users in the database
List Users Get a list of all users in the database
Update User Update a user in the database
Update User Update a user 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 create_organization_0( 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 create_user(Tesla.Env.client(), LettaAPI.Model.UserCreate.t(), keyword()) :: {:ok, LettaAPI.Model.User.t()} | {:ok, LettaAPI.Model.HttpValidationError.t()} | {:error, Tesla.Env.t()}
Create User Create a new user in the database
Parameters
connection(LettaAPI.Connection): Connection to serveruser_create(UserCreate):opts(keyword): Optional parameters
Returns
{:ok, LettaAPI.Model.User.t}on success{:error, Tesla.Env.t}on failure
@spec create_user_0(Tesla.Env.client(), LettaAPI.Model.UserCreate.t(), keyword()) :: {:ok, LettaAPI.Model.User.t()} | {:ok, LettaAPI.Model.HttpValidationError.t()} | {:error, Tesla.Env.t()}
Create User Create a new user in the database
Parameters
connection(LettaAPI.Connection): Connection to serveruser_create(UserCreate):opts(keyword): Optional parameters
Returns
{:ok, LettaAPI.Model.User.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 delete_organization_by_id_0(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 delete_user(Tesla.Env.client(), String.t(), keyword()) :: {:ok, LettaAPI.Model.User.t()} | {:ok, LettaAPI.Model.HttpValidationError.t()} | {:error, Tesla.Env.t()}
Delete User
Parameters
connection(LettaAPI.Connection): Connection to serveruser_id(String.t): The user_id key to be deleted.opts(keyword): Optional parameters
Returns
{:ok, LettaAPI.Model.User.t}on success{:error, Tesla.Env.t}on failure
@spec delete_user_0(Tesla.Env.client(), String.t(), keyword()) :: {:ok, LettaAPI.Model.User.t()} | {:ok, LettaAPI.Model.HttpValidationError.t()} | {:error, Tesla.Env.t()}
Delete User
Parameters
connection(LettaAPI.Connection): Connection to serveruser_id(String.t): The user_id key to be deleted.opts(keyword): Optional parameters
Returns
{:ok, LettaAPI.Model.User.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 list_orgs_0( 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 list_tags( Tesla.Env.client(), keyword() ) :: {:ok, LettaAPI.Model.HttpValidationError.t()} | {:ok, [String.t()]} | {:error, Tesla.Env.t()}
List Tags Get a list of all tags in the database
Parameters
connection(LettaAPI.Connection): Connection to serveropts(keyword): Optional parameters:after(String.t)::limit(integer())::query_text(String.t)::user_id(String.t):
Returns
{:ok, [%String.t{}, ...]}on success{:error, Tesla.Env.t}on failure
@spec list_tags_0( Tesla.Env.client(), keyword() ) :: {:ok, LettaAPI.Model.HttpValidationError.t()} | {:ok, [String.t()]} | {:error, Tesla.Env.t()}
List Tags Get a list of all tags in the database
Parameters
connection(LettaAPI.Connection): Connection to serveropts(keyword): Optional parameters:after(String.t)::limit(integer())::query_text(String.t)::user_id(String.t):
Returns
{:ok, [%String.t{}, ...]}on success{:error, Tesla.Env.t}on failure
@spec list_users( Tesla.Env.client(), keyword() ) :: {:ok, [LettaAPI.Model.User.t()]} | {:ok, LettaAPI.Model.HttpValidationError.t()} | {:error, Tesla.Env.t()}
List Users Get a list of all users in the database
Parameters
connection(LettaAPI.Connection): Connection to serveropts(keyword): Optional parameters:after(String.t)::limit(integer()):
Returns
{:ok, [%User{}, ...]}on success{:error, Tesla.Env.t}on failure
@spec list_users_0( Tesla.Env.client(), keyword() ) :: {:ok, [LettaAPI.Model.User.t()]} | {:ok, LettaAPI.Model.HttpValidationError.t()} | {:error, Tesla.Env.t()}
List Users Get a list of all users in the database
Parameters
connection(LettaAPI.Connection): Connection to serveropts(keyword): Optional parameters:after(String.t)::limit(integer()):
Returns
{:ok, [%User{}, ...]}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
@spec update_organization_0( 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
@spec update_user(Tesla.Env.client(), LettaAPI.Model.UserUpdate.t(), keyword()) :: {:ok, LettaAPI.Model.User.t()} | {:ok, LettaAPI.Model.HttpValidationError.t()} | {:error, Tesla.Env.t()}
Update User Update a user in the database
Parameters
connection(LettaAPI.Connection): Connection to serveruser_update(UserUpdate):opts(keyword): Optional parameters
Returns
{:ok, LettaAPI.Model.User.t}on success{:error, Tesla.Env.t}on failure
@spec update_user_0(Tesla.Env.client(), LettaAPI.Model.UserUpdate.t(), keyword()) :: {:ok, LettaAPI.Model.User.t()} | {:ok, LettaAPI.Model.HttpValidationError.t()} | {:error, Tesla.Env.t()}
Update User Update a user in the database
Parameters
connection(LettaAPI.Connection): Connection to serveruser_update(UserUpdate):opts(keyword): Optional parameters
Returns
{:ok, LettaAPI.Model.User.t}on success{:error, Tesla.Env.t}on failure