External Functions
Update External Function
Update an external function.
PATCH
/
api
/
v1
/
external-functions
/
{functionId}
Updates the properties of the external function with the specified ID.
Authorizations
AUTHORIZATION
string
headerrequiredAPI key required for this endpoint. Use Bearer YOUR_SECRET_API_KEY
. Get your key from https://play.ai/developers.
X-USER-ID
string
headerrequiredUser ID required for this endpoint. Get it from https://play.ai/developers.
Headers
content-type
enum<string>
requiredAvailable options:
application/json
accept
enum<string>
Available options:
application/json
Path Parameters
functionId
string
requiredThe external function's ID.
Body
application/json
name
any
description
any
endpointUrl
any
method
any
parameters
any
Response
200 - application/json
id
string
The unique ID for each external function.
name
string
The external function's name
description
string
The external function's description
endpointUrl
string
The external function's endpoint URL
method
enum<string>
default: GETThe external function's method
Available options:
POST
, GET
, PUT
, DELETE
parameters
object[]