## MedplumClient.requestSchema() method

Requests the schema for a resource type. If the schema is already cached, the promise is resolved immediately.

**Signature:**

```typescript
requestSchema(resourceType: string, options?: MedplumRequestOptions): Promise<void>;
```

## Parameters

| Parameter      | Type                           | Description                                   |
|----------------|--------------------------------|-----------------------------------------------|
| resourceType   | string                         | The FHIR resource type.                       |
| options        | [MedplumRequestOptions](/content/docs/sdk/core.medplumrequestoptions) | _(Optional)_ Optional fetch options.         |

**Returns:**

Promise<void>

Promise to a schema with the requested resource type.

- [MedplumClient.requestSchema() method](/content/docs/sdk/core.medplumclient.requestschema#medplumclientrequestschema-method/index.html)
- [Parameters](/content/docs/sdk/core.medplumclient.requestschema#parameters/index.html)
