Porta Plus 2 Web Services

<back to all web services

CustomerSite

The following routes are available for this service:
GET/GetCustomerSites/{License}/{i_customer}/{get_service_features}
GET/GetCustomerSiteInfo/{License}/{i_customer}/{i_customer_site}
POST/AddCustomerSite
POST/UpdateCustomerSite
GET/DeleteCustomerSite/{License}/{i_customer_site}
GET/AssignAccountToSite/{License}/{i_account}/{i_customer_site}

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

HTTP + CSV

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

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

i_customer,get_service_features,i_customer_site,i_account,site_info,License,ContentId,FeatureName
0,0,0,0,"{i_customer_site:0,name:String,i_customer:0,service_features:[{Name:String,FlagValue:String,ServiceAttributes:{String:[String]}}],used:0}",String,0,String

HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

sites,siteInfo,added_i_customer_site,isCustomerSiteDeleted,isAccountAssignedToSite,updated_i_customer_site
"[{i_customer_site:0,name:String,i_customer:0,service_features:[{name:String,flag_value:String,effective_flag_value:String,attributes:[{name:String,values:[String],effective_values:[String]}],locked:0,lockedSpecified:False,defined:0,definedSpecified:False,locks:[String]}],used:0,usedSpecified:False}]","{i_customer_site:0,name:String,i_customer:0,service_features:[{name:String,flag_value:String,effective_flag_value:String,attributes:[{name:String,values:[String],effective_values:[String]}],locked:0,lockedSpecified:False,defined:0,definedSpecified:False,locks:[String]}],used:0,usedSpecified:False}",0,False,False,0