 			return RocketChat.API.v1.failure e.name + ': ' + e.message
 
 		return RocketChat.API.v1.success
-			body:[name: @bodyParams.userId ]
+			body:[user: @bodyParams.userId ]
 			
 			
 ### Create Private Group

			return RocketChat.API.v1.failure e.name + ': ' + e.message
		
		
### Create outgoing webhooks,
user must also have manage-integrations role
creating a push point for messages to be push to from Rocket Chat.
###		
RocketChat.API.v1.addRoute 'integrations.outgoingWebhook.create', authRequired: true,
	post: ->
	
		if RocketChat.authz.hasPermission(@userId, 'manage-integrations') is false
			return RocketChat.API.v1.unauthorized()
		console.log 'Web integration data: ', @bodyParams
					
		try
			check @bodyParams,				

			return RocketChat.API.v1.failure e.name + ': ' + e.message
		

### Remove outgoing webhook
Delete an integration, user must also have manage-integrations permissions
###			
RocketChat.API.v1.addRoute 'integrations.outgoingWebhook.delete', authRequired: true,
	post: ->
	
		if RocketChat.authz.hasPermission(@userId, 'manage-integrations') is false
			return RocketChat.API.v1.unauthorized()
				
		try

			check @bodyParams,
				integrationId: String

			this.response.setTimeout(1000)
			
			Meteor.runAsUser this.userId, () =>
				Meteor.call 'deleteOutgoingIntegration', @bodyParams.integrationId
			return RocketChat.API.v1.success
				body: [integration: @bodyParams.integrationId]
		
		catch e
			return RocketChat.API.v1.failure  @bodyParams.integrationId, message: e.name + ' :: ' + e.message
			
