Issue with new Email fields in the new Contact App type
I'm trying to use the API to update an email field in an item (new email field in the new Contacts app type), and its throwing me an error. This is what i'm using to do it:
This is the URL i'm PUTing to:
https://api.podio.com/item/308528042/value/100502554
Message Body:
{
"values": [
{
"value": "email@address.com",
"type": "home"
}
]
}
and this is the error i'm getting:
{"error_parameters":{},"error_detail":null,"error_propagate":false,"request":{"url":"http:\/\/api.podio.com\/item\/308528042\/value\/100502554","query_string":"","method":"PUT"},"error_description":"Invalid value null (null): must be one of {'home', 'work', 'other'}","error":"invalid_value"}
How do I fix this?
-
Official comment
Hi Matthew,
Since the new email and phone fields are multi value fields with multiple values for each, they work a bit differently than many other fields, in that you don't put them in the "values" array.
This should work:
Message Body:
[ { "value": "email@address.com", "type": "home" } ]
Comment actions
Please sign in to leave a comment.
Comments
1 comment