Ona API
Authentication and Status Codes
Status Codes
Request based Authentication
Using Oauth2 with the Ona API
Making CORS - Cross-Origin Resource Sharing - requests to the Ona API
Charts
List of chart chart endpoints accessible to registered user
Get a list of chart field endpoints for a specific form or dataset.
Get a chart for a specific field in a form
Get a chart for field grouped by another field in the form
Get a chart data for all fields in a form
Data
GET JSON List of data end points
GET JSON List of data end points using limit operators
Download data in
csv
format
GET JSON List of data end points filter by owner
Get Submitted data for a specific form
Paginate data of a specific form
Sort submitted data of a specific form using existing fields
Get a single data submission for a given form
Get the history of edits made to a submission
Query submitted data of a specific form
Query submitted data of a specific form using date_created
Query submitted data of a specific form using date_modified
Query submitted data of a specific form using last_edited
Query submitted data of a specific form using version
Query submitted data of a specific form using status
Query submitted data of a specific form using uuid
Query submitted data of a specific form using user
Query submitted data of a specific form using submitted_by
Query submitted data of a specific form using survey_type
Query submitted data of a specific form using media_all_received
Query submitted data of a specific form using Tags
Tag a submission data point
Delete a specific tag from a submission
Get list of public data endpoints
Get enketo edit link for a submission instance
Delete a specific submission instance
GEOJSON
OSM
DataView
Definition
Create a new DataView
Retrieve a DataView
List all DataView
Update a DataView
Patch a DataView
Delete a DataView
Retrieving Data from the DataView
Retrieving Data using limit operators
Counting the Data in the DataView
Example
Response
Example
Response
Example
Response
Example
Response
Example
Response
Merged Datasets
Definition
Create a new Merged Dataset
Retrieve a Merged Dataset
List all Merged Datasets
Update a Merged Dataset
Patch a Merged Dataset
Delete a Merged Dataset
Retrieving Data from a Merged Dataset
How data in parent forms differs from and affects the merged xform
Widgets
Definition
Create a new Widget
Retrieve a Widget
List all Widgets
Update a Widget
Patch a Widget
Delete a Widget
Widget Data
Widget Data With Valid Key
Filter Widget Using FormID
Filter Widget Using DataView ID
Stats
Stats Endpoints
Forms
Publish XLSForms, List, Retrieve Published Forms.
Get list of forms
Get list of forms filter by owner
Get Form Information
Set Form Information
Replacing a Form
Delete Form
List of form data exports
Export form data asynchronously
Google Sheets Export
Export submitted data of a specific form version
Check progress of exporting form data asynchronously
Delete an XLS form asynchronously
List Forms
Get
JSON
|
XML
|
XLS
Form Representation
Get list of forms with specific tag(s)
Get list of Tags for a specific Form
Tag forms
Delete a specific tag
Get list of forms containing data with osm files
Get webform/enketo link
Get webform/enketo link with default form values
Get form data in xls, csv format.
Get list of public forms
Share a form with a specific username or usernames
Preview a survey draft
Import CSV data to existing form
Upload a XLS form async
Check on XLS form upload progress
Attachments and Media
Lists attachments of all xforms
Paginate attachment
Retrieve details of an attachment
Retrieve an attachment file
Lists attachments of a specific xform
Lists attachments of a specific instance
Retrieve image link of an attachment
Metadata
Permissions
Get list of metadata
Get list of metadata for a specific form
Get a specific metadata
Add metadata or media file to a form
Link XForm or Dataview as a media to a form
Notes
List all notes
List all notes to a submission
Add a note to a submission
Delete a Note
Files
Redirect to final attachment url
Redirect to thumbnail/resized image of attachment
Projects
Register a new Project
List of Projects
List of Projects filter by owner/organization
Retrieve Project Information
Update Project Information
Available Permission Roles
Share a project with a specific user
Send an email to users on project share
Remove a user from a project
Assign a form to a project
Upload XLSForm to a project
Get forms for a project
Get list of projects with specific tag(s)
Get list of Tags for a specific Project
Tag a Project
Remove a tag from a Project
Add a star to a project
Remove a star to a project
Get user profiles that have starred a project
Form Submissions
Submit an XML XForm submission
Submit a JSON XForm submission
Edit an existing XForm submission
RestServices
Permissions
Post Payload
Get list of Rest Services
Get a specific Rest Service
Add a Rest Service to a form
Delete a Rest Service
Adding TextIt
Adding Google Sheet Sync
Pushing Data To An Already linked Google Sheet
Overiding The Default Google Oauth2 redirect_uri
Submission Stats
Example
Response
Organizations
Register a new Organization
List of Organizations
List of Organizations Shared with Another User
Retrieve Organization Profile Information
Partial updates of Organization Profile Information
List Organization members
Add a user to an organization
Send an email to a user added to an organization
Change the role of a user in an organization
Remove a user from an organization
Profiles
Register a new User
List User Profiles
Retrieve User Profile Information
Partial updates of User Profile Information
Partial update for email requires password confirmation
Partial update of the metadata profile property
Change authenticated user’s password
Teams
GET List of Teams
GET Team Info for a specific team.
List members of a team
Add a user to a team
Set team default permissions on a project
Remove team default permissions on a project
User
Retrieve profile
Get projects that the authenticating user has starred
Request password reset
Reset user password
Expire temporary token
Users
List Users
List Users excluding organizations
Retrieve a specific user info
Search for a users using email
onadata
onadata package
Ubuntu installation instructions
Prepare OS
Database setup
Get the code
Set up and start your virtual environment or sandbox
Create a local_settings.py and update it accordingly
Run make to set up onadata and for initial db setup
Compile api docs
Copy static files to static dir
Setup uwsgi init script
Setup celery service
Setup nginx
Mac OS Installation Instructions
Step 1: Install dependencies using brew
Step 2: Install pip and virtualenv
Step 3: Clone the sourcecode
Step 4: Install app requirements
Step 5: Install postgres and create your database
Step 6: Test installation using development server
Step 7: Using celery
Ona API
Docs
»
onadata
»
onadata package
»
onadata.apps package
»
onadata.apps.api package
»
onadata.apps.api.tests package
»
onadata.apps.api.tests.views package
View page source
onadata.apps.api.tests.views package
¶
Submodules
¶
onadata.apps.api.tests.views.test_user_permissions module
¶
Module contents
¶