Create a new Code snippet

Create a new Code snippet

Request Body Parameters:

ParameterTypeMandatoryDescriptionExample
namestringfalseThe name of the code snippetUser is nurse
descriptionstringfalseThe description of the code snippetReturns true if the user template name is called nurse
languagestringtrueThe code language Values:JAVASCRIPTJAVASCRIPT
codestringtrueThe actual code snippetuser._template.name === 'nurse'

This API requires SETTINGS_CREATE_CODE_SNIPPET permission(s).

Body Params
string
length between 0 and 100

The name of the code snippet

string

The description of the code snippet

string
enum
required

The code language

Allowed:
string
required

The actual code snippet

Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json