postInstances MethodProtected

Used by clients to post multiple strongly typed instances through standard WSG REST API

postInstances<T extends WsgInstance>(requestContext: AuthorizedClientRequestContext, typedConstructor: object, relativeUrlPath: string, instances: T extends WsgInstance[], requestOptions?: WsgRequestOptions): Promise<T extends WsgInstance[]>

Parameter Type Description
requestContext AuthorizedClientRequestContext Client request context
typedConstructor object Used by clients to post a strongly typed instances through the REST API that's expected to return a standard response.
relativeUrlPath string Relative path to the REST resource.
instances T extends WsgInstance[] Strongly typed instances to be posted.
requestOptions WsgRequestOptions WSG options for the request.

Returns - The posted instances that's returned back from the server.

Defined in

Last Updated: 05 June, 2020