...
Code Block |
---|
PUT - /data/projects/{original-project-id}/subjects/{subject-id | subject-label}/projects/{shared-project-id} |
Parameters
{original-project-id} | Required path parameter. Specify the ID of the project that owns a given subject. | ||
---|---|---|---|
{subject-id} or {subject-label} | Required path parameter. | ||
{shared-project-id} | Required path parameter. Specify the ID of the project that you intend a subject to be shared into.
| ||
label | Optional querystring parameter. Specify a new label for this subject that will be used in the shared project, if desired. | ||
primary | Optional querystring parameter.
| ||
format | Optional querystring parameter. Specify the format of the returned response.
|
Response Codes
200 | OK |
---|---|
403 | Forbidden |
– User does not have permission to perform the requested operation |
404 |
---|
Not Found – Project ID not recognized | |
409 | Conflict – Attempting to write data into an XNAT object that already exists |
---|
Response Format
Returns the subject metadata from the original project.
...
Get A List Of Shared Projects Associated With A Subject
...
Code Block |
---|
GET - /data/projects/{project-id}/subjects/{subject-id | subject-label}/projects |
Parameters
{project-id} | Required path parameter |
---|---|
{subject-id} or {subject-label} | Required path parameter |
format | Optional querystring parameter. Specify the format of the returned response.
|
Response Format
Displaying JSON results. Note that the response does not specify which project owns a subject.
...