Click on Body tab. Choose x-www-form-urlencoded. Enter the required parameter name. Give it the value My API board.
Click on Send.
The Body response is invalid key. The status code 401 Unauthorized indicates that we need authorization to invoke the API. This is because when a board is created, Trello needs to associate that board with an account.
To add the key information, in the Body tab add a parameter named key whose value is the generated key. You can add a variable named {{TRELLO_KEY}} for the key value as shown below
To add the token information, click on jeton in the same page and copy the generated token in the Body parameters as shown below.
Click Save then Send et VoilĂ you have created your new board. If you go to your trello account, you will see the newly created board.
The created board contains default lists. Create a new empty board.
Creating Tests
Let's write an API test for the previous request. Go to the tests tab. The most basic and simple test is to check for the status code as shown in the previous lab.
click Send and check the test results tab. If the test passes, you should see PASS, status code is 200. If not, it means that the test fails and that your request did not return a 200 status code.