The API Controller uses simple HTTP posts to add records to tDAR. Records can be passed via the post with files as multi-part attachments.
http://core.tdar.org/api/upload
Limitations:
- cannot assign rights to records
- cannot mark files as confidential
- cannot associate records with collections
- cannot delete records
Parameters:
| Parameter | Note |
|---|---|
| record | This should contain the XML representation of the TDAR Record |
| projectId | Use this to override the project association for a given record |
| uploadFile | This parameter can be used for mutli-part forms to associate files that should be uploaded with the record |
Updating vs Creating:
If an ID is specified in the XML, it will try and update the record if the user has the permissions to update the record.If no ID is specified, it'll create the record.
Labels