Phurl currently uses an older EditController style for editing URLs. It should be converted to use EditEngine instead, which is a newer mechanism that can, e.g., automatically generate a Conduit API endpoint.
D14771 has a good example of doing this conversion in Badges. T10672 has a couple of pointers at things that doesn't fully cover (also in badges).