lawrence-ytz Posted November 19, 2014 Report Posted November 19, 2014 I'm trying to submit a custom field value using the api for client create, and am getting the following error, stdClass Object ( [value] => stdClass Object ( [required] => my_custom_field is in an invalid format. ) ) The code is my vars is : 'custom' => array( 'my_custom_field' => '12345' ),
Tyson Posted November 20, 2014 Report Posted November 20, 2014 It would be helpful to see the code for the entire request rather than an excerpt of a variable. Most problems related to using the API tend to be incorrect usage of BlestaApi::post. Based on the error, it sounds like that custom field is required, but Blesta is not receiving any value for it.
lawrence-ytz Posted November 26, 2014 Author Report Posted November 26, 2014 problem was using custom field name vs id. Maybe a better layout for requirements and parameters in the docs.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now