Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • If the content does not have any reserved dialcode, dialcode will be generated using autogenerated batch code, else existing dialcode's batchcode will be usedcontent Id as batchCode.
  • Content should belong to same channel.
  • Content should be of Type Textbook
  • If the content already have list of reserved dialcodes, the new dialcodes should be appended.

Release Dialcode API:

...

PATCH - content/v3/dialcode/release/{content_id}

Request Header:

Authorisation: //Authorisation key
Content-Type: application/json'

Request Body

Code Block
{
    "id": "ekstep.learning.content.dialcode.release",
    "ver": "3.0",
    "ts": "YYYY-MM-DDThh:mm:ssZ+/-nn.nn",
    "params":
    {
        "did": "", // device UUID
from which API is called
        "key": "", // API key (dynamic)
        "msgid": "" // unique request message id, UUID
    },
    "request":
    {
    	"dialcode": {
			"count": 5 // Number of dialcodes to be released
		}
	}
}

Validation Logic:

  • release dialCodes count should not be greater than the difference of  reserved dialcodes and total used dialcodesContent should belong to same channel.
  • Content should be of Type Textbook
  • If all the reserved dialcodes are utilised. It will throw exception.
  • If there is not dialcode reserved for the content, it will throw exception.
  • Content should be of Type Textbook.
  • API should release all the the unused dialcodes (not used in any of the children of the textbook)