I’m using the API to delete (remove the contents of) custom fields for users who are banned. So I can use something like this:
https://api2-us-west-2.insided.com/user/12345/profile_field/Company
That works fine. The problem is that we have a field called “A bit about yourself”, which obviously has spaces in there. How do I encode that in the URL?! I’ve tried:
api2-us-west-2.insided.com/user/12345/profile_field/A bit about yourself
api2-us-west-2.insided.com/user/12345/profile_field/A%20bit%20about%20yourself
api2-us-west-2.insided.com/user/12345/profile_field/A+bit+about+yourself
api2-us-west-2.insided.com/user/12345/profile_field/Abitaboutyourself
And none of these work. The “Abitaboutyourself” returns a field doesn’t exist message. The others all return “{"message":"no Route matched with those values"}:” (404 error).
Does anyone how a clue how these are meant to be formatted? Or am I out of luck and it just won’t work?!