Post Rules
This API creates customer rules. It returns the created rules definition by providing its IDs.
Request
            
                URI
                    
                                POST                            
                            https://{api_host}/rules
                            COPY
                    Header Parameters
                                    
            
            
                                    string
                
                
            
        
        
                sessionid            
                            Required
                    The authentication token obtained from login API response
Request Body
                        
                            Rules definition
                                            
                                                                                            
                                                    PostRulesRequest                                                
                                            
                                                                                            of type(s)
                                            
                                            
                                                application/json                                            
                                        
                                                                                    Required
                                        
                                    {
    "rules": [
        {
            "productType": "string",
            "productId": 0,
            "name": "string",
            "targetId": "string",
            "targetType": "string"
        }
    ]
}
                            
                                    array of 
                
            
            
                                    object
                
                
            
        
        
                rules            
                            Optional
                    rules
Responses
                        
                201            
            
        Rules created
                Returns 
                
                                    
                        PostRulesResponse                    
                
                of type(s)
                
                    application/json                
            
        
        {
    "rules": [
        {
            "productType": "string",
            "productId": 0,
            "name": "string",
            "targetId": "string",
            "targetType": "string",
            "id": "string"
        }
    ]
}
                400            
            
        
                Returns 
                
                                    
                        400InvalidRequest                    
                
                of type(s)
                
                    application/json                
            
        
        {
    "errCode": "GW_REQ_KEY",
    "errMessage": "Not found expected value for key 'sampleKey'"
}
            
            
                                    string
                
                
            
        
        
                errCode            
                            Optional
                    errCode
            
            
                                    string
                
                
            
        
        
                errMessage            
                            Optional
                    errMessage
                401            
            
        Unauthorized - Invalid login credentials
{
    "errCode": "string"
}
            
            
                                    string
                
                
            
        
        
                errCode            
                            Optional
                    errCode
