Skip to content

Instantly share code, notes, and snippets.

@evansde77
Created February 16, 2016 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evansde77/d3d304ce6d984b6b5044 to your computer and use it in GitHub Desktop.
Save evansde77/d3d304ce6d984b6b5044 to your computer and use it in GitHub Desktop.
def post(self):
"""
Create a new user document in the users and cluster users database.
:json string username: required, the requested username
:json string password: required, the requested password
:json string email: required, and email address to be associated
with the account
:json string first_name: required, the user's first name
:json string last_name: required, the user's last name
:json string company: optional, the user's company
:json string cluster: optional, the desired cluster/data location
:json string plan: optional, the Cloudant usage plan
:json string product: optional, the product the user is subscribed to
:json integer pardot_vid: optional, the Pardot visitor id
:json string country: optional, the user's country
:json string state: optional, the user's US state
:statuscode 201: {'ok':True} user data accepted for creation.
A DNS entry has been created and the load balancers refreshed.
:statuscode 302: The response is a redirect to the new user's dash
login, or back to the sign up page with an error encoded in
the url
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment