# \ContextsApi
All URIs are relative to *https://api.enbbox.com*
[**create_context**](ContextsApi.md#create_context) | **POST** /v1/contexts/ | POST /v1/contexts
[**delete_context**](ContextsApi.md#delete_context) | **DELETE** /v1/contexts/{type}/{id}/ | DELETE /v1/contexts/:type/:id
[**get_context**](ContextsApi.md#get_context) | **GET** /v1/contexts/{type}/{id}/ | GET /v1/contexts/:type/:id
[**list_contexts**](ContextsApi.md#list_contexts) | **GET** /v1/contexts/ | GET /v1/contexts — list contexts
[**update_context**](ContextsApi.md#update_context) | **PATCH** /v1/contexts/{type}/{id}/ | PATCH /v1/contexts/:type/:id
## create_context
> models::ContextRecord create_context(create_context)
POST /v1/contexts
### Parameters
**create_context** | [**CreateContext**](CreateContext.md) | | [required] |
### Return type
[**models::ContextRecord**](ContextRecord.md)
### Authorization
[bearer_auth](../README.md#bearer_auth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## delete_context
> delete_context(r#type, id)
DELETE /v1/contexts/:type/:id
### Parameters
**r#type** | **String** | | [required] |
**id** | **String** | | [required] |
### Return type
(empty response body)
### Authorization
[bearer_auth](../README.md#bearer_auth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## get_context
> models::ContextRecord get_context(r#type, id)
GET /v1/contexts/:type/:id
### Parameters
**r#type** | **String** | Context type | [required] |
**id** | **String** | Context ID | [required] |
### Return type
[**models::ContextRecord**](ContextRecord.md)
### Authorization
[bearer_auth](../README.md#bearer_auth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## list_contexts
> models::PaginatedContextRecord list_contexts(limit, offset, q, filter_by)
GET /v1/contexts — list contexts
### Parameters
**limit** | Option<**u32**> | Maximum number of items to return (1–100, default: 10). | |
**offset** | Option<**u32**> | Number of items to skip before returning results (default: 0). | |
**q** | Option<**String**> | Optional full-text search query. When present, listing is powered by Typesense full-text search. | |
**filter_by** | Option<**String**> | Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`. | |
### Return type
[**models::PaginatedContextRecord**](Paginated_ContextRecord.md)
### Authorization
[bearer_auth](../README.md#bearer_auth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## update_context
> models::ContextRecord update_context(r#type, id, update_context)
PATCH /v1/contexts/:type/:id
### Parameters
**r#type** | **String** | | [required] |
**id** | **String** | | [required] |
**update_context** | [**UpdateContext**](UpdateContext.md) | | [required] |
### Return type
[**models::ContextRecord**](ContextRecord.md)
### Authorization
[bearer_auth](../README.md#bearer_auth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)