API Reference > imodeljs-backend > iModels > ConcurrencyControl > requestResources requestResources Method Request the locks and/or Codes that will be required to carry out the intended write operations. This is a convenience method. It builds a request and sends it to the iModel server. requestResources(ctx: AuthorizedClientRequestContext, elements: ConcurrencyControl.ElementAndOpcode[], models?: ConcurrencyControl.ModelAndOpcode[], relationships?: ConcurrencyControl.RelationshipAndOpcode[]): Promise<void> Parameter Type Description ctx AuthorizedClientRequestContext RequestContext elements ConcurrencyControl.ElementAndOpcode[] The elements that will be written models ConcurrencyControl.ModelAndOpcode[] The models that will be written relationships ConcurrencyControl.RelationshipAndOpcode[] The relationships that will be writtenSee ConcurrencyControl.requestResourcesForInsert, ConcurrencyControl.requestResourcesForUpdate, ConcurrencyControl.requestResourcesForDelete Returns - Promise<void> Defined in core/backend/src/ConcurrencyControl.ts Line 263 Last Updated: 11 June, 2024