       { open: true }
     )
 
+start =
+  route: '/'
+  filters: [filters.FromJson]
+  method: 'PUT'
+  handler: ->
+    ownerId = @params.ownerId
+    name = @params.name
+    unless ownerId? and name?
+      throw new errors.UserError('must provide name and ownerId')
+
+    @context.statusCode = 201
+    @api.create
+      owner_id: ownerId
+      name: name
+      open: true
+      type: 'multi'
+
 module.exports = new CompetitionResource
    getByMembership
    end
    restart
    'show'
    'update'
    'destroy'
    'create'
    'patch'
  ]

#

Q = require 'q'
{models, Resource, filters} = require '../resource_helper'
errors = require '../bloops/errors'

class CompetitionResource extends Resource
  resourceName: 'competitions'
