Adding SetRatingProfile API documentation

This commit is contained in:
DanB
2013-07-17 14:36:19 +02:00
parent 5ba6c6ccc9
commit e29f295cb0

View File

@@ -0,0 +1,57 @@
Apier.SetRatingProfile
++++++++++++++++++++++
Process dependencies and load a specific rating profile from storDb into dataDb.
**Request**:
Data:
::
type AttrSetRatingProfile struct {
TPid string
RateProfileId string
}
Mandatory parameters: ``[]string{"TPid", "RateProfileId"}``
*JSON sample*:
::
{
"id": 0,
"method": "Apier.SetRatingProfile",
"params": [
{
"RateProfileId": "RPF_SAMPLE_1",
"TPid": "TPID_SAMPLE_1"
}
]
}
**Reply**:
Data:
::
string
Possible answers:
``OK`` - Success.
*JSON sample*:
::
{
"error": null,
"id": 0,
"result": "OK"
}
**Errors**:
``MANDATORY_IE_MISSING`` - Mandatory parameter missing from request.
``SERVER_ERROR`` - Server error occurred.