/assets/Document/create/

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
length between 1 and 236

Give contract to which the asset will belong

string
length ≥ 1
Defaults to Document

Document value needs to be provided here

string
length between 1 and 236

Give the discipline to which the asset belongs. Default value is Unknown

string
length between 1 and 236

Give the sub discipline to which the asset belongs. Default value is Unknown

string
length between 1 and 236

Give a tag_code of asset which you want to update

string
length between 1 and 236

Give a list of tag_codes of assets which you want to update

attribute
object
required

Give the attributes of the document.

Required attributes for create are:

  1. Document Number

  2. Document Name

  3. Revision

  4. File Id or file_hash

File Id is the unique identifier reference of the file from an external repository.

file_hash is the sha1 hash of the file if it was uploaded using EMT file uploader only. In this case, also provide file info in the payload as a json against “file” ex:

{
    "contract": "contract_id",
    "attribute": {
        "Document Number": "TST-IMG_DOC-00000",
        "Document Name": "test img doc",
        "Revision": "test revision",
        "file_hash": "sha1_hash of the file",
        "file": {
            "name": "test_image.png",
            "type": "image/png",
            "size": 192971,
            "key": "azure_filestack_path"
        }
    }
}
string
length between 1 and 236

Give the function to which the asset belongs. Default value is Unknown

string
length between 1 and 236

Give the sub functional unit to which the asset belongs. Default value is Unknown

integer

Only for bulk create. Give the number of assets you want to create.

delete_fields
array of strings

Give a list of fields which you want to delete. e.g: ["attribute.Work Package Type","location_id"]

delete_fields
relations
array of objects

list of related asset details. User can pass multiple dictionaries containing tag_code

relations
string
length ≥ 1

Name of new document pack to which you want to add your document.

string
length ≥ 1

tag_code of existing document pack to which you want to add/remove your document.

boolean

True if removing document(s) from pack

Response

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json