For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
API

Create a new function

POST
/functions/

Use with AI:Rippling AI ChatGPT Claude Cursor

Create a new function

POST
/functions/

Creates a function and returns its ID and details.

Helpful resources

Required Scopes

  • functions.read-write

Request

Body
    name string

    The function name

    api_name string

    The API name of the function

    description string

    The function description

    code_draft string

    The current draft of code for the function. Null when the function comes from a managed package install.

    dependencies object

    The dependencies of the function. Null when the function comes from a managed package install.

    is_async boolean

    Whether this function runs asynchronously

    listed_in_custom_apps boolean

    Whether this request-function is listed in the Custom Apps grid and navigation. Defaults to false on creation; omitted updates preserve the current value. Listing does not grant access or change deployment behavior. Only supported for request functions. Setting this field on an event function returns a validation error.

    type string

    Function type at creation. Defaults to event and cannot be changed afterward.

    Possible values: [event,request]
    source_upload object
    Optional source ZIP checksum and size for request functions only. Create or update returns ephemeral source_upload_instructions; this input is not returned.
      sha256 stringrequired

      SHA-256 of the exact ZIP bytes, written as 64 lowercase hexadecimal characters.

      size_bytes integerrequired

      Exact ZIP size in bytes, from 1 through 67108864 (64 MiB).

Responses​

Successful response

Schema
    __meta object
      redacted_fields object[]
        Array [
        name string

        The name for the redacted field

        reason string

        The reason for the redaction

        ]
    id stringrequired

    Identifier field

    created_at stringrequired

    Record creation date

    updated_at stringrequired

    Record update date

    name string

    The function name

    api_name string

    The API name of the function

    description string

    The function description

    code_draft string

    The current draft of code for the function. Null when the function comes from a managed package install.

    dependencies object

    The dependencies of the function. Null when the function comes from a managed package install.

    is_async boolean

    Whether this function runs asynchronously

    listed_in_custom_apps boolean

    Whether this request-function is listed in the Custom Apps grid and navigation. Defaults to false on creation; omitted updates preserve the current value. Listing does not grant access or change deployment behavior. Only supported for request functions. Setting this field on an event function returns a validation error.

    source_upload_instructions object
    Upload instructions returned only when source_upload was requested on create or update.
      url stringrequired

      Upload the ZIP directly to this URL, not through the Functions API.

      method stringrequired

      HTTP method for the client-direct upload.

      Possible values: [POST]
      fields objectrequired
      Include every opaque signed field unchanged in the multipart/form-data POST, plus the ZIP file.
        property name* string
      expires_at stringrequired

      UTC expiration of the upload instructions, in RFC3339/ISO8601 format.

      archive objectrequired
      Archive reference for a subsequent deployment after the upload succeeds.
        object_key stringrequired

        Tenant-scoped object key to use as the archive reference in the explicit deployment JSON.

        sha256 stringrequired

        SHA-256 of the ZIP bytes.

        size_bytes integerrequired

        Exact ZIP size in bytes, returned as a JSON integer.

Loading...