Method HIUGCCreateAssetVersionAgnostic
HIUGCCreateAssetVersionAgnostic(String, String, String, AuthoringSessionSourceStarter)
Creates a new version of an asset as part of a working editing session.
Declaration
public System.Threading.Tasks.Task<Den.Dev.Grunt.Models.HaloApiResultContainer<Den.Dev.Grunt.Models.HaloInfinite.AuthoringAssetVersion,Den.Dev.Grunt.Models.RawResponseContainer>> HIUGCCreateAssetVersionAgnostic (string title, string assetType, string assetId, Den.Dev.Grunt.Models.HaloInfinite.AuthoringSessionSourceStarter starter);
Parameters
Type | Name | Description |
---|---|---|
System.String | title | Title which contains the asset. An example value here is "hi". |
System.String | assetType | Type of asset to check. Example value is "UgcGameVariants". |
System.String | assetId | Unique ID for the asset. Example value is "f96f57e2-9f15-45c5-83ac-5775a48d2ba8" for "Attrition-Default-UGC". |
AuthoringSessionSourceStarter | starter | Container for the session descriptor that starts the new version. Example value should contain an existing session ID for SourceId and value of 1 for Source. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<HaloApiResultContainer<AuthoringAssetVersion,RawResponseContainer>> | If version creation is successful, returns an instance of AuthoringAssetVersion. Otherwise, returns null. |
Examples
Here is an example response from the API, as snapshotted on 7/18/2022:
{
"CustomData": {
"KeyValues": {}
},
"AssetVersionFiles": {
"Prefix": "https://blobs-infiniteugc.svc.halowaypoint.com/ugcstorage/ugcgamevariant/b5ed517c-ce50-4919-95b2-41197f644ad6/c77f607f-4c21-4359-a4ee-cbe617324474/",
"FileRelativePaths": [],
"PrefixEndpoint": {
"AuthorityId": "iUgcFiles",
"Path": "/ugcstorage/ugcgamevariant/b5ed517c-ce50-4919-95b2-41197f644ad6/c77f607f-4c21-4359-a4ee-cbe617324474/",
"QueryString": null,
"RetryPolicyId": "linearretry",
"TopicName": "",
"AcknowledgementTypeId": 0,
"AuthenticationLifetimeExtensionSupported": false,
"ClearanceAware": false
}
},
"Links": {
"EngineGameVariant": [
{
"TargetAssetId": "6ada47c6-fedd-4a46-9761-e6c4a8ed11bd",
"TargetAssetVersionId": null,
"Order": 0
}
]
},
"AssetId": "b5ed517c-ce50-4919-95b2-41197f644ad6",
"AssetVersionId": "c77f607f-4c21-4359-a4ee-cbe617324474",
"PublicName": "MultiTeam",
"Description": "",
"CreatedDate": {
"ISO8601Date": "2022-07-19T04:29:22.958Z"
},
"LastModifiedDate": {
"ISO8601Date": "2022-07-19T04:29:22.965Z"
},
"VersionNumber": 11,
"Note": "",
"AssetState": 1,
"Tags": [],
"Contributors": [],
"AssetHome": 2,
"ExemptFromAutoDelete": false,
"InspectionResult": 0,
"CloneBehavior": 0,
"Player": "xuid(PLAYER_XUID_HERE)",
"StringCulture": "",
"PreviousAssetVersionId": "3deff683-01e4-4e2a-927b-33a77c12d5fe"
}