Update a function
Request
Path Parameters
The API name of the function.
- application/json
Body
The function name
The function description
The current draft of code for the function. Null when the function comes from a managed package install.
The dependencies of the function. Null when the function comes from a managed package install.
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 object
SHA-256 of the exact ZIP bytes, written as 64 lowercase hexadecimal characters.
Exact ZIP size in bytes, from 1 through 67108864 (64 MiB).
Responses
- 200
- 400
- 401
- 403
- 404
Successful response
- application/json
- Schema
- Example (from schema)
Schema
__meta object
redacted_fields object[]
The name for the redacted field
The reason for the redaction
Identifier field
Record creation date
Record update date
The function name
The API name of the function
The function description
The current draft of code for the function. Null when the function comes from a managed package install.
The dependencies of the function. Null when the function comes from a managed package install.
Whether this function runs asynchronously
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 the ZIP directly to this URL, not through the Functions API.
HTTP method for the client-direct upload.
fields objectrequired
UTC expiration of the upload instructions, in RFC3339/ISO8601 format.
archive objectrequired
Tenant-scoped object key to use as the archive reference in the explicit deployment JSON.
SHA-256 of the ZIP bytes.
Exact ZIP size in bytes, returned as a JSON integer.
{
"__meta": {
"redacted_fields": [
{
"name": "date_of_birth",
"reason": "Insufficient entitlements"
}
]
},
"id": "string",
"created_at": "string",
"updated_at": "string",
"name": "string",
"api_name": "string",
"description": "string",
"code_draft": "string",
"dependencies": {},
"is_async": false,
"listed_in_custom_apps": false,
"source_upload_instructions": {
"url": "string",
"method": "POST",
"fields": {
"property name": "string"
},
"expires_at": "string",
"archive": {
"object_key": "string",
"sha256": "string",
"size_bytes": 0
}
}
}
The request failed validation. The response body describes the error.
- application/json
- Schema
- Example (from schema)
Schema
A human-readable explanation of why the request failed.
{
"detail": "string"
}
Authentication is required or the supplied credentials are invalid.
- application/json
- Schema
- Example (from schema)
Schema
Matches one or more of these formats:
- Format 1ok booleanrequired
Whether the request succeeded. Always false for an authentication error.
Possible values: [false]error stringrequiredA human-readable explanation of why authentication failed.
- Format 2detail stringrequired
A human-readable explanation of the authentication error.
- Format 1
{
"ok": false,
"error": "Incorrect authentication credentials."
}
{
"detail": "string"
}
The caller is not authorized to perform this action.
- application/json
- Schema
- Example (from schema)
Schema
A human-readable explanation of why the request failed.
{
"detail": "string"
}
The requested resource was not found.
- application/json
- Schema
- Example (from schema)
Schema
A human-readable explanation of why the request failed.
{
"detail": "string"
}