Click or drag to resize

SSMapServicesCreateUserAgent Method


Creates a new User Agent based on provided information

Namespace: IngeniuxCMService
Assembly: IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.6.492
Syntax
public XHRServiceResponseGeneric<UserAgentMgrInfo> CreateUserAgent(
	UserAgentMgrInfo data
)

Parameters

data  UserAgentMgrInfo

Information of new User Agent to create

Example
Sample JSON input
JavaScript
{
    "data": {
        "Name": "Safari",
        "SearchString": "safari",
        "ContentType": "text/html",
        "FileExtension": "xml"
    }
}

Return Value

XHRServiceResponseGenericUserAgentMgrInfo

Information of the created User Agent

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

If another User Agent with the same name already exists, returns error status

See Also