Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateRequestBuilderV2<EntityT>

Create OData request to create an entity.

Type parameters

  • EntityT: EntityV2

    Type of the entity to be created

Hierarchy

Implements

  • EntityIdentifiable<EntityT>

Index

Constructors

constructor

  • new CreateRequestBuilderV2(_entityConstructor: Constructable<EntityT>, _entity: EntityT): CreateRequestBuilderV2

Properties

Readonly _entity

_entity: EntityT

Entity to be created

Readonly _entityConstructor

_entityConstructor: Constructable<EntityT>

Constructor type of the entity to be created

requestConfig

requestConfig: ODataCreateRequestConfig<EntityT>

Request configuration to initialize with

Accessors

entity

  • get entity(): EntityT

Methods

asChildOf

  • asChildOf<ParentEntityT>(parentEntity: ParentEntityT, linkField: Link<ParentEntityT, EntityT>): this
  • Specifies the parent of the entity to create.

    Type parameters

    Parameters

    • parentEntity: ParentEntityT

      Parent of the entity to create

    • linkField: Link<ParentEntityT, EntityT>

      Static representation of the navigation property that navigates from the parent entity to the child entity

    Returns this

    The entity itself, to facilitate method chaining

build

execute

prepare

  • prepare(): this

relativeUrl

  • relativeUrl(): string

url

withCustomHeaders

  • withCustomHeaders(headers: Record<string, string>): this

withCustomQueryParameters

  • withCustomQueryParameters(queryParameters: Record<string, string>): this

withCustomServicePath

  • withCustomServicePath(servicePath: string): this