setAttributes

setAttributes

Update the attributes of this enum case.

enumCase.setAttributes({
	name: "New Name",
	nameByLocale: {
		nl: { action: "set", value: "Nieuwe naam" }
	}
})

Parameters

  • attributes: UpdateEnumCase – The attributes to update: name and/or nameByLocale.

Returns

  • Promise<EnumCase | null> – The updated EnumCase, or null if the case was removed before the update.