This method attaches file to a subject
| Name | Description |
|---|---|
| base64_content | File in base64 |
| file_name | File name |
Accept: application/json Content-Type: application/json
POST /rest/v2/subjects/92751901/files
{
"file_name": "hello_world.txt",
"file": {
"base64_content": "IWRscm93ICxvbGxlSA==",
"file_name": "hello_world.txt"
}
}
Content-Type: application/json; charset=utf-8
201 Created
{
"file": {
"n_subj_file_id": 93749701,
"base64_content": "IWRscm93ICxvbGxlSA==",
"file_name": "hello_world.txt"
}
}