curl --request POST \
--url https://app.freyavoice.ai/api/v2/versions/{entityType}/{entityId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entityId": "<string>",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"configSnapshot": {},
"parentVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>"
}
'{
"success": true,
"data": {
"message": "<string>",
"result": {
"version": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entityType": "<string>",
"entityId": "<string>",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"versionNumber": 123,
"parentVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isPublished": true,
"configSnapshot": {},
"configDiff": {},
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"publishedAt": "2023-11-07T05:31:56Z",
"publishedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>"
}
}
}
}Creates a new version of an entity with the provided configuration snapshot.
curl --request POST \
--url https://app.freyavoice.ai/api/v2/versions/{entityType}/{entityId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entityId": "<string>",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"configSnapshot": {},
"parentVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>"
}
'{
"success": true,
"data": {
"message": "<string>",
"result": {
"version": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entityType": "<string>",
"entityId": "<string>",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"versionNumber": 123,
"parentVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"isPublished": true,
"configSnapshot": {},
"configDiff": {},
"createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"publishedAt": "2023-11-07T05:31:56Z",
"publishedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>"
}
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Entity type: 'agent' or 'workflow'
agent, workflow