Create Document


    # Here is a curl example
    curl \
    -X POST "http://localhost:8888/api/PropertyCard/CreateDocument" \
    -H "Authorization: {token}" \
    -H "Content-Type: application/json" \
    -d '{
            "object_id": 123,
            "field_group_id": 123,
            "file_name":"test.png",
            "file":[],
            "thumbnail":[],
            "fields": [
                {
                    "key": "field1",
                    "value": "value1"
                },
                {
                    "key": "field2",
                    "value": "value2"
                },
                {
                    "key": "field3",
                    "value": "value4"
                }
            ]
      }'

This method allows you to create documents.

To create documents, you need to make a POST call to the following url: :
http://localhost:8888/api/PropertyCard/CreateDocument



    Result example :
    [
        {
            "Success": "boolean",
            "Message": "string",
            "Data": object,
            "CustomAction": Dictionary<object, object> ,
            "CustomAttributes":Dictionary<object, object>
        }
    ]

From Body Parameters

Field Parameter Type Type Description
object_id body long Object Id.
field_group_id body long Field Group Id. You can get from another method (http://localhost:8888/api/Objects/ObjectFieldGroups).
thumbnail body byte[] Add an image to use as a thumbnail (optional)
fields body List<PropertyCardFieldsParameters> fields. You can get from another method (http://localhost:8888/api/PropertyCard/GroupsAndFieldsSettings).

PropertyCardFieldsParameters. Is an class with properties
key: string
value: string

The value of single ObjectType field should be
sample:
{ "key":"test", "value":"object_id,record_guid" }
file_name body string File Name.
file body byte[] File.
Authorization header string Add Authorization header token