Create a document
POST/CreateDocument
Create a document record in the dynamoDB and upload the uploaded file to uploadCare.
Request
- application/json
Body
required
A document record object information
Possible values: [123456789
]
Please enter the serial number of the asset for which you are creating the document
Possible values: [Document created for the prometha
]
Description of the document.
fileInfo
object
required
File information for the document.
Possible values: [false
]
Indicates if the file is an image.
Possible values: [https://cdn.industrility.com/517d99cf-bd64-4eb3-9382-35c2a6c81348/
]
CDN URL of the file.
Possible values: [Prometha-Industrility Mapping documentation.pdf
]
Name of the file.
Possible values: [application/pdf
]
MIME type of the file.
Possible values: [https://cdn.industrility.com/517d99cf-bd64-4eb3-9382-35c2a6c81348/
]
Original URL of the file.
Possible values: [517d99cf-bd64-4eb3-9382-35c2a6c81348
]
UUID of the file.
Annotations associated with the document.
Possible values: [Prometha Asset Document-1
]
Name of the document.
Tags associated with the document.
Possible values: [6985698563
]
Telematics serial number.
Possible values: [oem@industrility.com
]
Username of the user creating the document.
Possible values: [US-oem@industrility.com
]
ID of the user creating the document.
Possible values: [true
, false
]
Indicates if the document is in PDF format.
Possible values: [AS-fe72d945-284a-464d-a6f4-d2bc2e488691
]
ID of the associated asset.
Possible values: [avatar-male.png
, avatar-male1.png
, avatar-male-2.png
, avatar-male-3.png
, avatar-male-4.png
, avatar-female.png
, avatar-female-2.png
, avatar-female-3.png
]
Avatar image associated with the user.
Possible values: [AN-Account1
]
Account ID associated with the user.
Possible values: [Asset2k
]
Name of the associated asset.
Responses
- 200
- 400
- 502
200 response
Response Headers
Access-Control-Expose-Headers
string
manages CORS exposed headers
Access-Control-Allow-Origin
string
manages CORS
Content-Range
string
data range of result
X-Total-Count
string
length of output
Access-Control-Allow-Headers
string
manages header for CORS
Content-Type
string
data type of content
- application/json
- Schema
- Example (from schema)
Schema
{
"cdnUrl": "string",
"description": "string",
"origName": "string",
"documentName": "string",
"mimeType": "string",
"originalUrl": "string",
"documentTag": "string",
"telematicsSerialNumber": 0,
"timeStamp": 0,
"accountId": "string",
"assetName": "string",
"id": "string",
"fileUuid": "string"
}
400 response
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string"
}
502 response
- application/json
- Schema
- Example (from schema)
Schema
{
"message": "string"
}