Query parameters
-
project_id string Required
Project ID
-
task_id string Required
Task ID
-
doc_id string Required
Document ID
-
folder_id string
Folder ID
-
folder_stack array[string]
Folder stack
Responses
-
• 201 object
The resource created successfully
-
• 401
The client request has not been completed because it lacks valid authentication credentials for the requested resource.
-
• 403
The client does not have access rights to the content.
-
• 405
The request method is known by the server but is not supported by the target resource.
POST /api/v2.0/files
curl \
-X POST https://openapi.niftypm.com/api/v2.0/files?project_id=string&task_id=string&doc_id=string \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response example (201)
{
"message": "string",
"files": [
{
"id": "string",
"name": "string",
"size": 42.0,
"url": "string",
"download": "string",
"thumbnail": "string",
"uploader": "string",
"comments": 42.0,
"created_at": "2023-05-04T09:42:00+00:00",
"googleId": "string",
"googleType": "string",
"processed": true,
"task": "string",
"project_id": "string",
"message": "string",
"labels": [
"string"
],
"folder": "string",
"folder_stack": [
"string"
],
"document": "string",
"annotations_task_id": "string"
}
]
}