# Here is a curl example
curl \
-X POST "http://localhost:8888/api/File/AddRelatedFileToFolder" \
-H "Authorization: {token}" \
-H "Content-Type: application/json" \
-d '{
"object_id": 123,
"record_id": 123,
"file_structure_id":123,
"file_name":"test.png",
"file":[],
}'
This method allows you add related files in different records.
To add related files, you need to make a POST call to the following url:
:
http://localhost:8888/api/File/AddRelatedFileToFolder
Result example :
[
{
"Success": "boolean",
"Message": "string",
"Data": object,
"CustomAction": Dictionary<object, object> ,
"CustomAttributes":Dictionary<object, object>
}
]
| Field | Parameter Type | Type | Description |
|---|---|---|---|
| object_id | body | long | Object Id. |
| record_id | body | long | Record Id. You can get from another method (http://localhost:8888/api/Objects/ObjectRecords). |
| file_structure_id | body | long | File Structure Id. You can get from another method (http://localhost:8888/api/Objects/RelatedFiles). |
| file_name | body | string | File Name |
| file | body | byte[] | File |
| Authorization | header | string | Add Authorization header token |