Porta Plus 2 Web Services

<back to all web services

CustomerHuntGroup

The following routes are available for this service:
GET/Huntgroupaccess/{IEnv}/{Id}/{ServicePassword}/{i_huntgroup}/{EnableHuntgroup}
GET/CustomerHuntgroupaccess/{License}/{ICustomer}/{Id}/{i_huntgroup}/{EnableHuntgroup}
GET/GetCustomerHuntGroups/{License}/{ICustomer}
GET/GetAccountHuntGroups/{License}/{IAccount}
GET/DeleteCustomerHuntGroup/{License}/{ICustomer}/{HuntGroupRecordId}/{ExtensionRecordId}
POST/AddUpdateCustomerHuntGroup
GET/togglehuntgroups/{hashed_iAccount}
GET/togglehuntgroups/{hashed_iAccount}/{i_huntgroup}
GET/getHuntgroupInfobyIAccount/{License}/{IAccount}/{fromDate}/{forGraphs}
GET/getHuntgroupExtension/{License}/{i_c_group}/{fromDate}/{forGraphs}
GET/ToggleExtensionStatus/{License}/{Id}/{IAccount}/{EnableHuntgroup}/{wrapupCodes}

To override the Content-type in your clients HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/CustomerHuntGroup HTTP/1.1 
Host: 7el.co 
Content-Type: text/jsv
Content-Length: length

{
	ICustomer: 0,
	IAccount: 0,
	forGraphs: False,
	Name: String,
	Id: String,
	hashed_iAccount: String,
	HuntGroupRecordId: 0,
	ExtensionRecordId: 0,
	HuntSequence: Order,
	AddExtensions: 
	[
		0
	],
	DeleteExtensions: 
	[
		0
	],
	HuntKeepOriginalCli: String,
	PickupAllowed: String,
	RingDelay: String,
	RingTime: String,
	Huntstop: String,
	PrimaryGroup: String,
	RingDelayAr: 
	[
		0
	],
	RingTimeAr: 
	[
		0
	],
	HuntstopAr: 
	[
		String
	],
	PrimaryGroupAr: 
	[
		String
	],
	IEnv: 0,
	ServicePassword: String,
	i_huntgroup: 0,
	EnableHuntgroup: False,
	fromDate: String,
	i_c_group: 0,
	wrapupCodes: False,
	License: String,
	ContentId: 0,
	FeatureName: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	HGInfo: 
	{
		i_c_group: 0,
		i_customer: 0,
		i_customerSpecified: False,
		name: String,
		hunt_sequence: String,
		hunt_keep_original_cli: String,
		id: String,
		assigned_extensions: 
		[
			{
				i_cg_ext: 0,
				i_cg_extSpecified: False,
				i_c_ext: 0,
				i_c_extSpecified: False,
				i_c_group: 0,
				i_c_groupSpecified: False,
				type: String,
				id: String,
				name: String,
				huntstop: String,
				primary_group: String,
				hunt_delay: 0,
				hunt_delaySpecified: False,
				hunt_expire: 0,
				hunt_expireSpecified: False,
				hunt_order: 0,
				hunt_orderSpecified: False,
				account_id: String
			}
		],
		pickup_allowed: String,
		hunt_delay: 0,
		hunt_expire: 0,
		huntstop: String,
		primary_group: String
	},
	HGInfoDeleted: False,
	HuntGroupId: 0,
	AddedHuntgroup: 
	{
		i_c_group: 0,
		ActivationDate: 0001-01-01,
		i_customer: 0,
		IAccount: 0,
		i_customerSpecified: False,
		name: String,
		fullname: String,
		hunt_sequence: String,
		hunt_keep_original_cli: String,
		i_c_ext: 0,
		hunt_active: String,
		id: String,
		pickup_allowed: String,
		assigned_extensions: 
		[
			{
				i_cg_ext: 0,
				i_cg_extSpecified: False,
				i_c_ext: 0,
				i_c_extSpecified: False,
				type: String,
				id: String,
				name: String,
				hunt_order: 0,
				hunt_delay: 0,
				hunt_expire: 0,
				hunt_active: String,
				huntstop: String,
				primary_group: String,
				IAccount: 0
			}
		]
	},
	HGInfoLst: 
	[
		{
			i_c_group: 0,
			ActivationDate: 0001-01-01,
			i_customer: 0,
			IAccount: 0,
			i_customerSpecified: False,
			name: String,
			fullname: String,
			hunt_sequence: String,
			hunt_keep_original_cli: String,
			i_c_ext: 0,
			hunt_active: String,
			id: String,
			pickup_allowed: String,
			assigned_extensions: 
			[
				{
					i_cg_ext: 0,
					i_cg_extSpecified: False,
					i_c_ext: 0,
					i_c_extSpecified: False,
					type: String,
					id: String,
					name: String,
					hunt_order: 0,
					hunt_delay: 0,
					hunt_expire: 0,
					hunt_active: String,
					huntstop: String,
					primary_group: String,
					IAccount: 0
				}
			]
		}
	],
	updateHuntgroup: 0,
	lstSignInOut: 
	[
		{
			Id: 0,
			SigninTime: String,
			SignoutTime: String,
			i_account: 0,
			i_customer: 0,
			i_env: 0,
			i_c_group: 0,
			name: String,
			isActive: String,
			SignInTimeDT: 0001-01-01,
			SignOutTimeDT: 0001-01-01,
			CreatedOn: 0001-01-01,
			UpdatedOn: 0001-01-01,
			RowVersion: 0
		}
	],
	License: String,
	ContentId: 0,
	FeatureName: String
}