API Reference > itwin-client > iTwinServiceClients > WsgClient > postInstance postInstance MethodProtected Used by clients to post strongly typed instances through standard WSG REST API postInstance<T extends WsgInstance<T>>(requestContext: AuthorizedClientRequestContext, typedConstructor: () => T, relativeUrlPath: string, instance: T, requestOptions?: WsgRequestOptions, httpRequestOptions?: HttpRequestOptions): Promise<T> Parameter Type Description requestContext AuthorizedClientRequestContext The client request context typedConstructor () => T Used by clients to post a strongly typed instance through the REST API that's expected to return a standard response. relativeUrlPath string Relative path to the REST resource. instance T Strongly typed instance to be posted. requestOptions WsgRequestOptions WSG options for the request. httpRequestOptions HttpRequestOptions Additional options for the HTTP request. Returns - Promise<T> The posted instance that's returned back from the server. Defined in clients/itwin/src/WsgClient.ts Line 300 Last Updated: 12 June, 2024