SSMapServicesCreateUserAgent Method

Ingeniux CMS Web Services API

Creates a new User Agent based on provided information

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.70
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