post https://example.com/settings/v1/code-snippets
Create a new Code snippet
Request Body Parameters:
Parameter | Type | Mandatory | Description | Example |
---|---|---|---|---|
name | string | false | The name of the code snippet | User is nurse |
description | string | false | The description of the code snippet | Returns true if the user template name is called nurse |
language | string | true | The code language Values:JAVASCRIPT | JAVASCRIPT |
code | string | true | The actual code snippet | user._template.name === 'nurse' |
This API requires SETTINGS_CREATE_CODE_SNIPPET permission(s).