I can not add Entities over the API

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Maximus
    replied
    Also, you have to define the all fields with the 'required' status.

    Leave a comment:


  • Andorxor
    replied
    I made a entity with only name as required field and got a 400 when i tried to create it with {"name":"test"} as payload.

    Leave a comment:


  • Maximus
    replied
    Hello.
    Error 400 means BadRequest. You have an incorrect parameter. Also, check this https://www.espocrm.com/documentation/development/api/.

    Leave a comment:


  • Andorxor
    started a topic I can not add Entities over the API

    I can not add Entities over the API

    Whenever i try to add a entity over the API i get the following error in the log:
    Code:
    API [POST]:/:controller, Params:Array (     [controller] => Account ) , InputData: {"assignedUserId":"system","name":"XTestX"} -  [] []
    Display Error: , Code: 400 URL: /CRM/api/v1/Account [] []
Working...