SMS Templates

Update a SMS Template

OAuth Scope

This endpoint requires the following OAuth scope manage_templates.

post/smstemplate/{uuid}.json

Path parameters

uuidstring uuid required

UUID of the SMS Template

Request body

namestring required

The name of the SMS template. This is a unique identifier for the template within the system. Examples include 'Tech Delayed Template', 'Parts Ordered Template', etc.

messagestring

The SMS message content that will be sent to recipients. Supports template variables like {job.contact_first}, {vendor.name}, {job.generated_job_id}, {job.total_price}, etc. Maximum length is determined by the SMS service provider's limit. Messages exceeding this limit will not be saved.

uuidstring uuid

Unique identifier for this record

Example request

{
  "uuid": "123e4567-78d5-45cb-9489-23f945ba341b"
}

Response

Success - The record was updated successfully

errorCodenumber
messagestring

Example response

{
  "message": "OK"
}

Changes

Changed in 3 of the 50 revisions of this API.16

    • removed the request property active

      request-property-removed

    • added the non-success response with the status 401

      response-non-success-status-added

    • added the non-success response with the status 403

      response-non-success-status-added

    • added the non-success response with the status 404

      response-non-success-status-added

    • added the non-success response with the status 429

      response-non-success-status-added

    • added the non-success response with the status 500

      response-non-success-status-added

    • the security scope manage_templates was added to the endpoint's security scheme oauth2

      api-security-scope-added