SSMapServicesCreateUserAgent Method Ingeniux CMS Web Services API

Creates a new User Agent based on provided information

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

public XHRServiceResponseGeneric<UserAgentMgrInfo> CreateUserAgent(
	UserAgentMgrInfo data
)

Parameters

data
Type: UserAgentMgrInfo

Information of new User Agent to create

Examples

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

Return Value

Type: XHRServiceResponseGenericUserAgentMgrInfo

Information of the created User Agent

Examples

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

Reference