post Patients Id Documents

POST {{baseUrl}}/patients/:id/documents?subdomain={{subdomain}}&location_id={{location_id}}

Upload patient documents to NexHealth

Request Params

KeyDatatypeRequiredDescription
subdomainstring(Required) Used to scope the request to the specified institution
location_idstring(Required) Used to scope the request to the specified institution

Request Body

[{"name"=>"file", "value"=>nil, "datatype"=>"null"}, {"name"=>"name", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"document_type_id", "value"=>"<integer>", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;code&quot;:&quot;\u003cboolean\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;error&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;],&quot;data&quot;:{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;url&quot;:&quot;\u003cstring\u003e&quot;,&quot;created_at&quot;:&quot;\u003cstring\u003e&quot;,&quot;document_type_id&quot;:&quot;\u003cinteger\u003e&quot;},&quot;count&quot;:&quot;\u003cinteger\u003e&quot;}