update resource type