Version 7 was just released! The docs will be moved here soon. Visit the external v7 docs site

Resource::setProp

Modifies any of the properties of a Resource Object.

resource.setProp( name, value )

To modify any of the extendedProps, use setExtendedProp.