These docs are for an old release. Info on upgrading to v6

Resource::setExtendedProp

Modifies a single property in an Resource Object’s extendedProps hash.

resource.setExtendedProp( name, value )