API Post Attendance Single Body Error

Using API Post Attendance Single using the provided PHP example


The call returns:


status: 400

body: {"errors":[{"message":"Request body was not valid.","error_code":-2146233088,"error_name":"Request body was not valid.","raw_message":""}]}


Any help in resolving this issue is appreciated.


Neal  


 

Comments

  • Hi Neal,


    The example given is just a sample; you'll need valid user_id & dates that are compatible with your environment for it to work.  If you continue to see errors I recommend for you to log a ticket at https://support.blackbaud.com.


    Thanks,

    Evan
  • The problem was resolved by changing the getBody code to


    $request->setBody(json_encode($parameters));

     

Categories