Iām using a docker image by Bitnami and Iām able to make a GET request such as listing the current meetings.
curl -X GET -H āContent-Type: application/jsonā -H
āAuthorization: Bearer secretā
https://portal.domain.com:8443/legacy/Api/V8/module/Meetings
However, If I do a POST request to create a meeting, I get an error:
āaccess_deniedā,āerror_descriptionā:āThe resource owner or authorization server denied the request.ā,āhintā:āError while decoding from Base64Url, invalid base64 characters detectedā
Below is the POST command I used. It did not matter whether I set the type to āMeetingā or āMeetingsā.
curl -X POST -H āContent-Type: application/jsonā -H āAuthorization: Bearer secretā
-d ā{
ādataā: {
ātypeā: āMeetingā,
āattributesā: {
ānameā: āInternal Meetingā,
āduration_hoursā: ā1ā,
āduration_minutesā: ā15ā,
ādate_startā: ā2023-07-14 09:00:00ā,
}
}
}ā https://portal.domain.com:8443/legacy/Api/V8/module
I use an OAUTH2 client associated to a regular user. This regular user can login to the SuiteCRM web interface, list and create meetings.
Is there anything that I missed ?
Thanks.