functions
post/functions/{function_id}

Request

  • Base URL
    https://api.notte.cc (the document declares no server; this is the origin it was published from)
  • Auth
    OAuth 2
    Password
    Token URL: token

Path parameters

function_idstring required

Query parameters

versionstring nullable

The version of the function to upload

restrictedboolean

Whether to restrict the function code

Headers

x-notte-request-originstring nullable
x-notte-sdk-versionstring nullable

Request body multipart/form-data

filestring binary required
response_formatstring nullable

JSON Schema of run()'s return value, computed by the caller from its pydantic model

Response

Successful Response

default_runtime'standard' | 'extended'
sdk_generation'v19' | 'v110'
upload_sdk_versionstring nullable
function_idstring required

The ID of the function

created_atstring date-time required

The creation time of the function

updated_atstring date-time required

The last update time of the function

latest_versionstring required

The version of the function

versionsstring[] required

The versions of the function

statusstring required

The status of the function

namestring nullable

The name of the function

descriptionstring nullable

The description of the function

sharedboolean

Whether the function is public and can beshared with other users

reference_workflow_idstring nullable

The ID of the reference function (i.e whether the function was forked from another function or not)

publishedboolean
required_secretsstring[]
sourcestring nullable

Where the function was created from, stamped at creation. Read-only.

self_healingboolean

Whether the build is finished and the function may be healed automatically. Can only be enabled on a function that has a thread for self-heal to resume.

domainstring nullable

The site this function drives, used to group endpoints in the console. Null when the function never named a site.

instructionsstring nullable

Builder's operating notes: typical run duration, known failure modes, which parameters matter.

response_formatobject nullable

JSON Schema of the value run() returns, or null when the author never documented one.

schedule_cronstring nullable

Cron expression the function runs on, or null if it is not scheduled.

schedule_variablesobject nullable

Variables passed to each scheduled run, or null if it is not scheduled.

schedule_state'enabled' | 'paused' nullable

'enabled' while the schedule fires, 'paused' once the backend disabled it after a deterministic failure (exhausted credit, or an inactive function), null when there is no schedule.

workflow_idstring required

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status