PUT
/
medical
/
v1
/
organization
/
{id}
curl --request PUT \
  --url https://api.sandbox.metriport.com/medical/v1/organization/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "name": "<string>",
  "type": "<string>",
  "location": {
    "addressLine1": "<string>",
    "addressLine2": "<string>",
    "city": "<string>",
    "state": "<string>",
    "zip": "<string>",
    "country": "<string>"
  }
}'
import { Metriport, OrgType, USState } from "@metriport/api-sdk";

const metriportClient = new MetriportMedicalApi("YOUR_API_KEY");

const org = await metriportClient.updateOrganization({
  id: "2.16.840.1.113883.3.666.123",
  type: OrgType.postAcuteCare,
  name: "Metriport Inc.",
  location: {
    addressLine1: "2261 Market Street",
    addressLine2: "#4818",
    city: "San Francisco",
    state: USState.CA,
    zip: "94114",
    country: "USA",
  },
});

Path Params

id
string
required

The ID of your organization.

Body

name
string
required

The name of your organization. This is usually your legal corporate entity name - for example Metriport Inc..

type
string
required

The type of your organization, can be one of: acuteCare, ambulatory, hospital, labSystems, pharmacy, postAcuteCare.

location
Address
required

Response

id
string
required

The ID assigned to your organization. This ID will be used to uniquely identify your organization in medical documents.

name
string
required

The name of your organization. This is usually your legal corporate entity name - for example Metriport Inc..

type
string
required

The type of your organization, can be one of: acuteCare, ambulatory, hospital, labSystems, pharmacy, postAcuteCare.

location
Address
required
{
    "id": "2.16.840.1.113883.3.666.123",
    "type": "postAcuteCare",
    "name": "Metriport Inc.",
    "location": {
        "addressLine1": "2261 Market Street",
        "addressLine2": "#4818",
        "city": "San Francisco",
        "state": "CA",
        "zip": "94114",
        "country": "USA"
    }
}