Newer Version Available

This content describes an older version of this product. View Latest

Package2VersionCreateRequest (Beta)

Represents a request to create a second-generation package version in a Dev Hub org. Available in API version 41.0 and later.

This release contains a beta version of Second-Generation Packaging, which means it’s a high-quality feature with known limitations. Second-Generation Packaging isn’t generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. We can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only based on generally available products and features. You can provide feedback and suggestions for Second-Generation Packaging in the Salesforce DX Packaging 2 Beta group in the Trailblazer Community.

Second-generation packaging lets you create developer-controlled packages or managed packages. We support developer-controlled packages through an open pilot program. These packages are designed for enterprise customer use cases, but ISVs can also use them during package development. Pilot programs are subject to change. You can install developer-controlled packages in scratch or sandbox orgs but not in a production org. Check out the Trailblazer Community for details on developer-controlled packages.

Note

Supported SOAP Calls

create(), query(), retrieve(), update(), upsert()

Supported REST HTTP Methods

Query, GET, POST

Fields

Field Details
Branch
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The branch to associate with this package version. Can be used to create a tree structure of inheritance.
InstallKey
Type
encryptedstring
Properties
Create, Nillable
Description
Installation key for installing a key-protected package. The default is null.
IsPasswordProtected
Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Specifies whether installation of this package version requires the user to provide an installation key (true) or not (false).
Package2Id
Type
reference
Properties
Create, Filter, Group, Sort
Description
A reference to an ID for the Package2 to create a version of.
Package2VersionId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
A reference to an ID for the Package2Version that this request creates (starts with 05i).
Status
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The status of the Package2Version creation request. Valid values include:
  • Queued
  • InProgress
  • Success
  • Error
Tag
Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Optional tags for the package version.
VersionInfo
Type
base64
Properties
Create
Description
The blob that stores details about the package version.