What am i doing wrong. I can not create any links via Rest API.
All other rest functions are working fine. GET and POST
1. Created a API user "test", with api-key "0de7d71a2128c275ea742b3144f7a12f"
2. GET "https://demo.espocrm.com/api/v1/Contact", header "Content-type: application/json", X-Api-key: 0de7d71a2128c275ea742b3144f7a12f" - RESPONSE: 200
3. POST "https://demo.espocrm.com/api/v1/Contact" header "Content-type: application/json", X-Api-key: 0de7d71a2128c275ea742b3144f7a12f" - RESPONSE: 200
4. POST "https://demo.espocrm.com/api/v1/Task" header "Content-type: application/json", X-Api-key: 0de7d71a2128c275ea742b3144f7a12f" - RESPONSE: 200
4. POST "https://demo.espocrm.com/api/v1/Contact/60c5af36bcc9a3528/Task"
Body: { "id": "5a7d839facfcf" } - RESPONSE: 500
Why am i getting 500 when trying to link a Task to Contact??
I have tested other entetys but all response 500
**EDIT**
I think i had to use the parentId in the body when i create the Task.
But anyway the response should not be 500.
All other rest functions are working fine. GET and POST
1. Created a API user "test", with api-key "0de7d71a2128c275ea742b3144f7a12f"
2. GET "https://demo.espocrm.com/api/v1/Contact", header "Content-type: application/json", X-Api-key: 0de7d71a2128c275ea742b3144f7a12f" - RESPONSE: 200
3. POST "https://demo.espocrm.com/api/v1/Contact" header "Content-type: application/json", X-Api-key: 0de7d71a2128c275ea742b3144f7a12f" - RESPONSE: 200
4. POST "https://demo.espocrm.com/api/v1/Task" header "Content-type: application/json", X-Api-key: 0de7d71a2128c275ea742b3144f7a12f" - RESPONSE: 200
4. POST "https://demo.espocrm.com/api/v1/Contact/60c5af36bcc9a3528/Task"
Body: { "id": "5a7d839facfcf" } - RESPONSE: 500
Why am i getting 500 when trying to link a Task to Contact??
I have tested other entetys but all response 500
**EDIT**
I think i had to use the parentId in the body when i create the Task.
But anyway the response should not be 500.
Comment