Update only field from a form associated to a record #97

Closed
opened 2022-02-09 02:32:57 -05:00 by dmarcicLIH · 1 comment
dmarcicLIH commented 2022-02-09 02:32:57 -05:00 (Migrated from github.com)

Hi,
Is it possible to update some fields of an identified record using this API as i don't see an update method ?
Thanks
David

Hi, Is it possible to update some fields of an identified record using this API as i don't see an update method ? Thanks David
tranpl commented 2022-02-10 07:00:10 -05:00 (Migrated from github.com)

Yes, you can update any fields in any form for projects which the redcap api token has access using this api library. I believe there are some sample code for exporting and importing of the meta data (data dictionary) for individual projects. You then update the dictionary as needed and import back into REDCap.

This is the example from the RedcapApiDemo project in the source code.
var _uri = "http://localhost/redcap"; var redcap_api_2_0_0 = new RedcapApi(_uri); var ExportMetaDataAsyncResult = await redcap_api_2_0_0.ExportMetaDataAsync(_token, Content.MetaData, ReturnFormat.json, null, null, OnErrorFormat.json);

Yes, you can update any fields in any form for projects which the redcap api token has access using this api library. I believe there are some sample code for exporting and importing of the meta data (data dictionary) for individual projects. You then update the dictionary as needed and import back into REDCap. This is the example from the RedcapApiDemo project in the source code. ` var _uri = "http://localhost/redcap"; var redcap_api_2_0_0 = new RedcapApi(_uri); var ExportMetaDataAsyncResult = await redcap_api_2_0_0.ExportMetaDataAsync(_token, Content.MetaData, ReturnFormat.json, null, null, OnErrorFormat.json); `
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tranpl/redcap-api#97
No description provided.