/dataset

View as Markdown
Creates a dataset from a dataset template. Templates can be found in the "Admin => Templates" menu via the user interface at ODR.io. Known issue - template UUID is not available there. A feature request to display the template UUID has been added. Contact the ODR team for a UUID when using this endpoint until the issue is resoled. POST a template UUID and the desired database name to create the database. If using a super-admin credential, optionally pass the email of the creating user to create a new dataset with metadata corresponding to that user. Email and user info should not be included unless usinng a super-admin credential. This requires an "Authorization: Bearer" header with a valid API Token.

Request

This endpoint expects a multipart form.
user_emailstringRequired
first_namestringRequired
last_namestringRequired
dataset_namestringRequired
template_uuidstringRequired
This generates a RRUFF dataset from the RRUFF Sample template.

Response headers

Access-Control-Allow-OriginstringOptional
Access-Control-Allow-MethodsstringOptional
Access-Control-Allow-HeadersstringOptional
Access-Control-Expose-HeadersstringOptional
Access-Control-Max-AgestringOptional
Cache-ControlstringOptional
X-Debug-TokenstringOptional
Keep-AlivestringOptional

Response

OK
database_uuidstring
internal_idinteger
record_nameinteger
record_uuidstring
template_uuidstring
metadata_for_uuidstring
_record_metadataobject
fieldslist of any
recordslist of any