Modifies a Status Line Rule Table Entry given a specific Table Entry ID in a given Message Table. Upon modifying a Status Line Rule, all the attributes containing Element Descriptors need to be first set to empty value. Then, current associated element descriptors need to be deleted, and new ones created according to the modified resource, which are then passed in the POST.
https://134.56.227.163/rest/spmmessagetable/{identifier}/spmstatuslinerule/{identifier}
POST
true
Parameter Name | Required | Service Affecting | Data Type | Default Value | Possible Values | Description |
---|---|---|---|---|---|---|
Description | No | No | string | none | 64 - Max Length | Description of the Rule (Status Line) |
ConditionExpression | No | No | string | none | 255 - Max Length | Logical expression, including Condition Rule references, the logical operators && and ||, and parenthesis grouping. If the condition evaluates true then this rule will be applied, otherwise it will not. Condition rule references are of the form ${n}, where 'n' is the row ID of the condition rule. If no logical expression is provided then the expression is evaluated as 'true'. |
ResultType | Yes | No | Enum | 1 | Possible values:
| Specifies the result type of the current rule to go on to the next rule. If eRtMandatory, and this rule fails, all other rules in this message table will be dropped. If eRtOptional, then continue to the next rule unconditionally. |
ElementDescriptorList | No | No | string | none | 5 - Max Length | This is a comma-separated list of the element descriptor row IDs which are part of this rule. In the present release there is a maximum of 2 members for Status Line (1 each of class eSPRClass_StatusCode and eSPRClass_SIPVersion). |
The POST can contain either only the attributes that are being updated, or the full set of attributes for the resource
curl --cookie PHPSESSID=ej8n1o309aiko21tfc6nvff6j5 --cacert 1kCAcert.pem --data -i https://134.56.227.163/rest/spmmessagetable/1/spmstatuslinerule/1 --data "ResultType=1"
<?xml version="1.0"?> <root> <status> <http_code>200</http_code> </status> <spmstatuslinerule id="1:3001" href="https://134.56.227.163/rest/spmmessagetable/1/spmstatuslinerule/3001"> <ConditionExpression>${1}</ConditionExpression> <Description>Status Line Rule 1</Description> <ElementDescriptorList count="1"> <entry href="https://134.56.227.163/sprelementdescriptor/4">4</entry> </ElementDescriptorList> <ResultType>1</ResultType> </spmstatuslinerule> </root>