Dear support,
We are using version 5.1.2.
We are trying to create "Case" entity via API.
In order to do it we try to perform the following (successfully passing through basic-auth):
$.ajax({
type: "POST",
xhrFields: {
withCredentials: true
},
beforeSend: function (xhr) {
xhr.setRequestHeader('Authorization', 'Basic ' + btoa('our-userur-password'));
},
url: "https://our-url/EspoCRM-5.1.2/api/v1/Case",
data: {
name: "test"
}
}
We do not see empty created "Case" in the system (in database as well).
We tried to do as it's been stated in the API help however no Account has been created as well (blank response).
$.ajax({
type: "POST",
xhrFields: {
withCredentials: true
},
beforeSend: function (xhr) {
xhr.setRequestHeader('Authorization', 'Basic ' + btoa('our-userur-password'));
},
url: "https://our-url/EspoCRM-5.1.2/api/v1/Account",
data: {
"name": "Test1",
"assignedUserId": "1"
}
}
Please help.
We are using version 5.1.2.
We are trying to create "Case" entity via API.
In order to do it we try to perform the following (successfully passing through basic-auth):
$.ajax({
type: "POST",
xhrFields: {
withCredentials: true
},
beforeSend: function (xhr) {
xhr.setRequestHeader('Authorization', 'Basic ' + btoa('our-userur-password'));
},
url: "https://our-url/EspoCRM-5.1.2/api/v1/Case",
data: {
name: "test"
}
}
We do not see empty created "Case" in the system (in database as well).
We tried to do as it's been stated in the API help however no Account has been created as well (blank response).
$.ajax({
type: "POST",
xhrFields: {
withCredentials: true
},
beforeSend: function (xhr) {
xhr.setRequestHeader('Authorization', 'Basic ' + btoa('our-userur-password'));
},
url: "https://our-url/EspoCRM-5.1.2/api/v1/Account",
data: {
"name": "Test1",
"assignedUserId": "1"
}
}
Please help.
Comment