Subscriptions
Test a subscription function
This endpoint test runs a transform function against a payload.
POST
/
v1
/
projects
/
{projectID}
/
subscriptions
/
test_function
Copy
curl --request POST \
--url https://dashboard.getconvoy.io/api/v1/projects/{projectID}/subscriptions/test_function \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"function": "<string>",
"payload": {},
"type": "<string>"
}'
Copy
{
"message": "<string>",
"status": true,
"data": {
"log": [
"<string>"
],
"payload": "<any>"
}
}
Authorizations
Path Parameters
Project ID
Body
application/json
Function Details
The body is of type object
.
Response
200
application/json
OK
The response is of type object
.
Was this page helpful?
Copy
curl --request POST \
--url https://dashboard.getconvoy.io/api/v1/projects/{projectID}/subscriptions/test_function \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"function": "<string>",
"payload": {},
"type": "<string>"
}'
Copy
{
"message": "<string>",
"status": true,
"data": {
"log": [
"<string>"
],
"payload": "<any>"
}
}
Assistant
Responses are generated using AI and may contain mistakes.