Traccar API - Permission, 415 Unsupported Media Type

Developer6 years ago

Call http://localhost:8089/api/permissions/

function LinkDeviceMember() {
                $.ajax({
                    url: 'http://localhost:8089/api/permissions/',
                    dataType: 'json',
                    type: 'post',
                    data: {userId: 1, deviceId: 3},
                    xhrFields: {
                        withCredentials: true
                    },
                    success: function (result) {
                        console.log(result);
                    }
                })
            }

Howto solve this problem?

Developer6 years ago

After inspect traccar server,

resource org.traccar.api.resource.PermissionsResource not called,