postInstances Method

Post multiple strongly typed instances. Sends a request body with WSG instances.

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 The client request context
typedConstructor object Used to construct the resulting instances from the 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: 08 January, 2020