Create a custom function
Creates a new custom function for the team.
Authentication
x-api-keystring
API Key authentication via header
Request
This endpoint expects an object.
path
The custom function’s path, in the form functions/<name>.js. Root-level paths and nested paths are not supported. The name must be at least two characters, start with a letter, underscore, or dollar sign, and contain only letters, numbers, underscores, and dollar signs.
content
The custom function’s content, up to a maximum of 500 KB (UTF-8).
description
The custom function's description.
Response
Custom Function Created
id
The resource's ID.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
500
Internal Server Error