Files API

Update file bound to a subject

PUT /rest/v2/subjects/:subject_id/files/:id

Parameters

Name Description
base64_content File in base64
file_name File name

Request

Headers

Accept: application/json
Content-Type: application/json

Route

PUT /rest/v2/subjects/92751901/files/93749901

Body

{
  "file_name": "hello_world.txt",
  "file": {
    "base64_content": "IWRscm93ICxvbGxlSA==",
    "file_name": "hello_world.txt"
  }
}

Response

Headers

Content-Type: application/json; charset=utf-8

Status

200 OK

Body

{
  "file": {
    "n_subj_file_id": 93749901,
    "base64_content": "IWRscm93ICxvbGxlSA==",
    "file_name": "hello_world.txt"
  }
}