JobSmsTemplate ============== Quick Reference --------------- .. list-table:: :header-rows: 1 :widths: 10 40 50 * - Method - Endpoint - Description * - GET - /api/SmsTemplate/notificationTokens - * - GET - /api/SmsTemplate/jobStatuses - * - GET - /api/SmsTemplate/list - * - GET - /api/SmsTemplate/{templateId} - * - DELETE - /api/SmsTemplate/{templateId} - * - POST - /api/SmsTemplate/save - .. _get-apismstemplatenotificationtokens: GET /api/SmsTemplate/notificationTokens ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/SmsTemplate/notificationTokens" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/SmsTemplate/notificationTokens .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/SmsTemplate/notificationTokens' **Sample Response:** .. toggle:: .. code-block:: json :linenos: [] ---- .. _get-apismstemplatejobstatuses: GET /api/SmsTemplate/jobStatuses ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/SmsTemplate/jobStatuses" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/SmsTemplate/jobStatuses .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/SmsTemplate/jobStatuses' **Sample Response:** .. toggle:: .. code-block:: json :linenos: [] ---- .. _get-apismstemplatelist: GET /api/SmsTemplate/list ~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Query Parameters:* - `companyId` (string, query): No description available **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/SmsTemplate/list" ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/SmsTemplate/list .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/SmsTemplate/list' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "status": "success", "data": {} } ---- .. _get-apismstemplatetemplateid: GET /api/SmsTemplate/{templateId} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `templateId` (integer, path) *(required)*: No description available **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.get( "/api/SmsTemplate/{templateId}" , templateId=789e0123-e89b-12d3-a456-426614174002 ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw get /api/SmsTemplate/{templateId} \ templateId=789e0123-e89b-12d3-a456-426614174002 .. tab:: curl .. code-block:: bash curl -X GET \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/SmsTemplate/789e0123-e89b-12d3-a456-426614174002' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "status": "success", "data": {} } ---- .. _delete-apismstemplatetemplateid: DELETE /api/SmsTemplate/{templateId} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **Parameters:** *Path Parameters:* - `templateId` (integer, path) *(required)*: No description available **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.delete( "/api/SmsTemplate/{templateId}" , templateId=789e0123-e89b-12d3-a456-426614174002 ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw delete /api/SmsTemplate/{templateId} \ templateId=789e0123-e89b-12d3-a456-426614174002 .. tab:: curl .. code-block:: bash curl -X DELETE \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ 'https://api.abconnect.co/api/SmsTemplate/789e0123-e89b-12d3-a456-426614174002' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "status": "success", "message": "Resource deleted successfully" } ---- .. _post-apismstemplatesave: POST /api/SmsTemplate/save ~~~~~~~~~~~~~~~~~~~~~~~~~~ **Example Request:** .. tabs:: .. tab:: Python .. code-block:: python from ABConnect import ABConnectAPI # Initialize the API client api = ABConnectAPI() # Make the API call response = api.raw.post( "/api/SmsTemplate/save" , data= { "example": "data" } ) # Process the response print(response) .. tab:: CLI .. code-block:: bash ab api raw post /api/SmsTemplate/save .. tab:: curl .. code-block:: bash curl -X POST \ -H 'Authorization: Bearer YOUR_API_TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "example": "data" }' \ 'https://api.abconnect.co/api/SmsTemplate/save' **Sample Response:** .. toggle:: .. code-block:: json :linenos: { "id": "789e0123-e89b-12d3-a456-426614174002", "status": "created", "message": "Resource created successfully" }