HAPI FHIR Server

create-type: Create a new Goal instance

post
http://localhost:8080/fhir/R4/Goal

Body

FHIR-JSON-RESOURCE

FHIR-JSON-RESOURCEobject

A FHIR resource

Response

200

Success

FHIR-JSON-RESOURCE

FHIR-JSON-RESOURCEobject

A FHIR resource

post/Goal

Body

{
  "resourceType": "Goal"
}
{ "resourceType": "Goal" }
 
curl --request POST \
  --url http://localhost:8080/fhir/R4/Goal \
  --header 'Accept: application/fhir+json, application/fhir+xml' \
  --header 'Authorization: Bearer ' \
  --header 'Content-Type: application/fhir+json' \
  --data '{
  "resourceType": "Goal"
}'
200
{}