Api js put and delete

Are you populating the channel variable? What is the developer console output? What is shown in the Network tab of the developer console for the API call?