Upload score api

Community Member

We're having 2 questions

1. We are trying to upload the score back to gradebook assignments using the following API,
We manually generated access token from canvas settings page and we tried it gives the following error,

    "errors": {
        "message""Invalid access token format"

2. When student launches the quiz, we're only getting ID_TOKEN back. So, is there any way we could get access token from id token? If NOT, can someone suggest how do we upload score?