Thinkific.Api.CategoryMemberships (Thinkific API SDK v0.1.3)
API calls for all endpoints tagged CategoryMemberships
.
Link to this section Summary
Functions
addProductsToCategory Create one or more Products to a Category
deleteProductsByID Delete one or more Products from a Category.
Link to this section Functions
Link to this function
add_products_to_category(connection, id, body, opts \\ [])
Specs
add_products_to_category( Tesla.Env.client(), [Float.t()], Thinkific.Model.MembershipsRequest.t(), keyword() ) :: {:ok, nil} | {:error, Tesla.Env.t()}
addProductsToCategory Create one or more Products to a Category
Parameters
- connection (Thinkific.Connection): Connection to server
- id ([float()]): ID of the Category in the form of an integer
- body (MembershipsRequest): An array of the IDs of the Products that should be added to the Category as integers.
- opts (KeywordList): [optional] Optional parameters
Returns
} on success {:error, info} on failure
Link to this function
delete_products_by_id(connection, id, opts \\ [])
Specs
delete_products_by_id(Tesla.Env.client(), [Float.t()], keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
deleteProductsByID Delete one or more Products from a Category.
Parameters
- connection (Thinkific.Connection): Connection to server
- id ([float()]): ID of the Category in the form of an integer
- opts (KeywordList): [optional] Optional parameters
Returns
} on success {:error, info} on failure