Updates the properties of the external function with the specified ID.
cURL
curl --request PATCH \ --url https://api.play.ai/api/v1/external-functions/{functionId} \ --header 'Authorization: Bearer <token>' \ --header 'X-USER-ID: <api-key>' \ --header 'content-type: <content-type>' \ --data '{ "name": "<string>", "description": "<string>", "endpointUrl": "<string>", "method": "GET", "parameters": [ { "type": "number", "name": "<string>", "description": "<string>", "id": "<string>", "parameterPosition": "body" } ] }'
{ "id": "f0gZrOKBKL7veJ6o1M", "name": "<string>", "description": "<string>", "endpointUrl": "<string>", "method": "GET", "parameters": [ { "type": "number", "name": "<string>", "description": "<string>", "id": "<string>", "parameterPosition": "body" } ] }
Your secret API key from PlayAI, formatted as Bearer YOUR_SECRET_API_KEY.
Bearer YOUR_SECRET_API_KEY
Your unique user ID from PlayAI.
application/json
The external function's ID.
"f0gZrOKBKL7veJ6o1M"
External function resource response.
The response is of type object.
object
Was this page helpful?