Skip to main content
Skip table of contents

How to Create Subjects with XNAT REST API

Creating subjects via the XNAT REST API is simple. Performing a PUT to the following URI would create a subject. (This would create a subject called '1' within a project with the ID 'TEST')


The TEST project must exist before this command will succeed.

You can also assign demographics to this subject using the XML PATH shortcuts defined  here :   XNAT REST XML Path Shortcuts

To assign the gender and handedness to this subject, you would execute the following PUT.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.