Method HIUGCPatchAssetVersion
HIUGCPatchAssetVersion(String, String, String, String, AuthoringAssetVersion)
Update an existing asset version.
Declaration
public System.Threading.Tasks.Task<Den.Dev.Grunt.Models.HaloApiResultContainer<Den.Dev.Grunt.Models.HaloInfinite.AuthoringAssetVersion,Den.Dev.Grunt.Models.RawResponseContainer>> HIUGCPatchAssetVersion (string title, string assetType, string assetId, string versionId, Den.Dev.Grunt.Models.HaloInfinite.AuthoringAssetVersion patchedAsset);
Parameters
Type | Name | Description |
---|---|---|
System.String | title | Title for the game for which the authoring session needs to be spawned. Example variant is "hi" for "Halo Infinite". |
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". |
System.String | versionId | Unique ID for the asset version to be published. |
AuthoringAssetVersion | patchedAsset | Updated asset version with custom configuration. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<HaloApiResultContainer<AuthoringAssetVersion,RawResponseContainer>> | If successful, returns an instance of HIUGCPatchAssetVersion containing the changes. 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/b75ff80c-dd0f-40be-880a-b8f2e9cb4fa8/",
"FileRelativePaths": [],
"PrefixEndpoint": {
"AuthorityId": "iUgcFiles",
"Path": "/ugcstorage/ugcgamevariant/b5ed517c-ce50-4919-95b2-41197f644ad6/b75ff80c-dd0f-40be-880a-b8f2e9cb4fa8/",
"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": "b75ff80c-dd0f-40be-880a-b8f2e9cb4fa8",
"PublicName": "MultiTeam",
"Description": "",
"CreatedDate": {
"ISO8601Date": "2022-07-19T03:25:00.826Z"
},
"LastModifiedDate": {
"ISO8601Date": "2022-07-19T04:10:02.027Z"
},
"VersionNumber": 8,
"Note": "Not autosaved",
"AssetState": 1,
"Tags": [],
"Contributors": [],
"AssetHome": 2,
"ExemptFromAutoDelete": true,
"InspectionResult": 0,
"CloneBehavior": 0,
"Player": "xuid(PLAYER_XUID_HERE)",
"StringCulture": "en-us",
"PreviousAssetVersionId": "3deff683-01e4-4e2a-927b-33a77c12d5fe"
}