From e29f295cb081c17cae3f7a9d38b2ea3e2e7856dc Mon Sep 17 00:00:00 2001 From: DanB Date: Wed, 17 Jul 2013 14:36:19 +0200 Subject: [PATCH] Adding SetRatingProfile API documentation --- docs/api_ratingprofiles.rst | 57 +++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 docs/api_ratingprofiles.rst diff --git a/docs/api_ratingprofiles.rst b/docs/api_ratingprofiles.rst new file mode 100644 index 000000000..8b3ec08ed --- /dev/null +++ b/docs/api_ratingprofiles.rst @@ -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. + +