SSMapServicesUpdateUserAgent Method Ingeniux CMS Web Services API

Updates a User Agent Branding

Namespace: IngeniuxCMService
Assembly: IngeniuxCMService (in IngeniuxCMService.dll) Version: 9.0.565.0 (9.0.565)
Syntax

public XHRServiceResponseGeneric<UserAgentMgrInfo> UpdateUserAgent(
	UserAgentMgrInfo data
)

Parameters

data
Type: UserAgentMgrInfo

Information to update the User Agent

Examples

Sample JSON input
JavaScript
{
    "data": {
        "Name": "Chrome",
        "SearchString": "chrome",
        "ContentType": "text/html",
        "FileExtension": "xml"
    }
}

Return Value

Type: XHRServiceResponseGenericUserAgentMgrInfo

Information of User Agent after update

Examples

Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "ContentType": "text\/html",
        "FileExtension": "xml",
        "Name": "Chrome",
        "SearchString": "chrome"
    }
}
Remarks

If User Agent with matching name doesn't exist, returns error status

See Also

Reference