Authorization: ********************
{
"entity": {
"id": "string",
"name": "string",
"description": "string",
"portal_config_id": "string",
"plugin_inst_ids": [
"string"
],
"ptype": {
"ivr_portal": {}
},
"last_edited": "1s",
"definition_name": "string",
"portal_segments": {
"portal_segments": [
{
"workflow_choices": [
{
"actions": [
{
"plugin_instance_id": "string",
"restructure_before": {
"property1": "string",
"property2": "string"
},
"restructure_after": {
"property1": "string",
"property2": "string"
},
"action_definition_name": "string",
"opts": {
"property1": "string",
"property2": "string"
}
}
],
"template": {
"invoice_template": {
"top_level_fields": [
{
"item_type": "UNSPECIFIED",
"name": "string",
"display_name": "string",
"value": "string",
"validation_type": "VALIDATION_NONE",
"format": "string"
}
],
"invoices": [
{
"top_level_fields": [
{
"item_type": "UNSPECIFIED",
"name": "string",
"display_name": "string",
"value": "string",
"validation_type": "VALIDATION_NONE",
"format": "string"
}
],
"items": [
{
"fields": [
{}
]
}
]
}
]
}
},
"form_fields": [
{
"name": "string",
"alt_name": "string",
"display_name": "string",
"field_type": "VALUE_TYPE_UNKNOWN",
"validation_type": "VALIDATION_NONE",
"formats": [
"string"
],
"invoice_type": "UNSPECIFIED",
"helper_text": {
"text": "string"
},
"required": true
}
],
"header_text": "string",
"footer_text": "string",
"demo_mode": true,
"demo_fail_conditions": [
{
"key": "string",
"op": "COMPARE_OPERATION_EQ",
"value": {
"bool_val": true
}
}
],
"demo_pass_conditions": [
{
"key": "string",
"op": "COMPARE_OPERATION_EQ",
"value": {
"bool_val": true
}
}
],
"demo_results": {
"property1": "string",
"property2": "string"
},
"workflow_definition_name": "string"
}
],
"header_text": "string",
"footer_text": "string"
}
]
}
},
"mask": "string"
}
curl --location --request POST 'https://api.cbf.tcn.com/api/v1alpha1/portalmanager/upsertportal' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"entity": {
"id": "string",
"name": "string",
"description": "string",
"portal_config_id": "string",
"plugin_inst_ids": [
"string"
],
"ptype": {
"ivr_portal": {}
},
"last_edited": "1s",
"definition_name": "string",
"portal_segments": {
"portal_segments": [
{
"workflow_choices": [
{
"actions": [
{
"plugin_instance_id": "string",
"restructure_before": {
"property1": "string",
"property2": "string"
},
"restructure_after": {
"property1": "string",
"property2": "string"
},
"action_definition_name": "string",
"opts": {
"property1": "string",
"property2": "string"
}
}
],
"template": {
"invoice_template": {
"top_level_fields": [
{
"item_type": "UNSPECIFIED",
"name": "string",
"display_name": "string",
"value": "string",
"validation_type": "VALIDATION_NONE",
"format": "string"
}
],
"invoices": [
{
"top_level_fields": [
{
"item_type": "UNSPECIFIED",
"name": "string",
"display_name": "string",
"value": "string",
"validation_type": "VALIDATION_NONE",
"format": "string"
}
],
"items": [
{
"fields": [
{}
]
}
]
}
]
}
},
"form_fields": [
{
"name": "string",
"alt_name": "string",
"display_name": "string",
"field_type": "VALUE_TYPE_UNKNOWN",
"validation_type": "VALIDATION_NONE",
"formats": [
"string"
],
"invoice_type": "UNSPECIFIED",
"helper_text": {
"text": "string"
},
"required": true
}
],
"header_text": "string",
"footer_text": "string",
"demo_mode": true,
"demo_fail_conditions": [
{
"key": "string",
"op": "COMPARE_OPERATION_EQ",
"value": {
"bool_val": true
}
}
],
"demo_pass_conditions": [
{
"key": "string",
"op": "COMPARE_OPERATION_EQ",
"value": {
"bool_val": true
}
}
],
"demo_results": {
"property1": "string",
"property2": "string"
},
"workflow_definition_name": "string"
}
],
"header_text": "string",
"footer_text": "string"
}
]
}
},
"mask": "string"
}'
{
"entity": {
"id": "string"
}
}