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' ), Quote
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. Quote
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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.