You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
curl -H "Authorization: Bearer $token" -X POST "https://HOSTNAME/file/ingest?fileid=<FILE_UUID>"
75
+
67
76
- `/file/accession`
68
-
- accepts `POST` requests with JSON data with the format: `{"accession_id": "<FILE_ACCESSION>", "filepath": "</PATH/TO/FILE/IN/INBOX>", "user": "<USERNAME>"}`
77
+
- accepts `POST` requests with either:
78
+
- A JSON playload: `{"accession_id": "<FILE_ACCESSION>", "filepath": "</PATH/TO/FILE/IN/INBOX>", "user": "<USERNAME>"}`
79
+
- OR query parameters: `/file/accession?fileid=<FILE_UUID>&accessionid=<ACCESSION_ID>`
69
80
- assigns accession ID to the file.
70
81
82
+
- If both a JSON payload and query parameters are provided in the same request, a `400 Bad Request` is returned.
83
+
71
84
- Error codes
72
-
- `200` Query execute ok.
73
-
- `400`Error due to bad payload i.e. wrong `user` + `filepath` combination.
85
+
- `200` Query executed successfully.
86
+
- `400`Bad request (e.g. wrong `user` + `filepath` combination, both payload and parameters provided, invalid fileid, or invalid JSON).
0 commit comments