InsertActionSubType
| Initial Build | 2011.01 |
| xWeb | Web Method |
| Response Type | string (guid) |
The InsertActionSubType web method inserts a new action subtype code for a specified action type.
Parameters
This method requires the following parameters.
| Name | Type | Occurs | Description |
|---|---|---|---|
| actionTypeKey | guid | 1..1 | This must be the Action Key of an existing Action Type. A list of keys can be retrieved from GetActionTypeList. |
| actionCode | string | 1..1 | The code for the action subtype. |
Response
Guid of the newly inserted action subtype.
Sample Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.avectra.com/2005/">
<soapenv:Header>
<ns:AuthorizationToken>
<ns:Token>**********************</ns:Token>
</ns:AuthorizationToken>
</soapenv:Header>
<soapenv:Body>
<ns:InsertActionSubType>
<ns:actionTypeKey>909b5d5b-b451-449b-a539-547653322849</ns:actionTypeKey>
<ns:actionCode>subtype2</ns:actionCode>
</ns:InsertActionSubType>
</soapenv:Body>
</soapenv:Envelope>
Sample Response
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<AuthorizationToken xmlns="http://www.avectra.com/2005/">
<Token>53bb849f-572c-43fe-8dbc-24696a9f23f4</Token>
</AuthorizationToken>
</soap:Header>
<soap:Body>
<InsertActionSubTypeResponse xmlns="http://www.avectra.com/2005/">
<InsertActionSubTypeResult>ec42dc76-6933-44a7-88f5-c437d8b52daf</InsertActionSubTypeResult>
</InsertActionSubTypeResponse>
</soap:Body>
</soap:Envelope>
JSON Method
POST /xWeb/JSON/InsertActionSubType
DATA: JSON
{
"InsertActionSubType" : {
"actionTypeKey" : "{{catKey}}",
"actionCode" : "{{actionSubTypeCode}}"
}
}
SAMPLE RESULT
HTTP STATUS: 200
DATA: JSON
"27784459-a27f-4552-ac42-68443c7c1547"