‫First of all, this is not as hard as it seems.
‫So we're doing something with the card, right?
‫So it makes sense that we look here at the cards and as I mentioned, there is no move card endpoint.
‫It actually, from a risk perspective, doesn't really make sense to have such endpoints like describing
‫action, because what we are actually changing are properties of a resource.
‫So where a card belongs is defined by idealist, which is a property.
‫So in order to move the card from one list to the other, what we actually need to change is the property
‫idealist.
‫So we need to change something about the card.
‫So it makes sense in that case to use update a card.
‫Update a card.
‫We now have a put request so we to put request.
‫We're changing something about that card.
‫In this case, the idea will stay the same.
‫The name of the card will stay the same.
‫But what we want to change is ID list.
‫So let's figure out the way how to do this.
‫Again.
‫I'm going to copy this endpoint.
‫Open up a new tab.
‫Start with a base URL, base the address itself.
‫Make sure to select put.
‫And here I'm going to go ahead and save this.
‫I'm going to call it move card to.
‫Done list.
‫Now we already know that this ID here is a path parameter.
‫So instead of writing it with this notation, I'm going to write here column ID.
‫So postman will display it in path variables here.
‫So what do we need?
‫Well, this is a mandatory parameter.
‫I don't even need to look at the API documentation to know that this is the mandatory parameter.
‫Because what they're trying to do, update the card.
‫Well, which card?
‫Well, let's see which cart to discard.
‫Create a cart.
‫This is the idea of the cart.
‫So want to copy it?
‫And here I'm going to have here this ID.
‫We can simply go ahead and send this request as it is.
‫But we're going to get an error here.
‫Just a little bit of information that we're missing.
‫Absolutely no problem.
‫We can simply copy that as well.
‫So the key and the token are missing.
‫Not in both variables, but in credit terms and base them here.
‫All right, let's try it again.
‫And we're getting to 100, right?
‫So essentially.
‫We haven't changed anything about the card itself.
‫So if we're looking here.
‫What is the idealist want to see here?
‫This is the value when we created the card, and if we're looking here in the response itself, we can
‫search the response.
‫So you can either click here on this magnifier and you can simply search here for something you will
‫see here did list.
‫So it still belongs to the same list, which is the to do list.
‫So in order to change the list, we need to change the property.
‫Idealist.
‫Well, let's see if there's any information about this property being accepted, because if the API
‫doesn't accept this query parameter, we can't really change anything about it.
‫Right.
‫So we'll see here that indeed idealist does appear as a potential query param.
‫It's not mandatory, right?
‫Because we can change different things about our car.
‫We don't need to provide a lot of information, only very little information.
‫So we're going to take here idealist.
‫As a curator are going to specified here and now, I want to change something about it.
‫What you want to change?
‫Well, I want to put it into the done list.
‫Right.
‫So this is my done list.
‫And to copy the ID of the done list.
‫Go back to the putsch request.
‫And.
‫Paste it here.
‫So now let's send this.
‫And we're looking here in the response we want to see here, this previous idea that we had is no longer
‫there.
‫The first second for the done list.
‫You will see now that we have changed the property.
‫So this card now is on the down list.
‫So this is how we have moved this card from one list to the other by changing the ideal list property.
‫This is the kind of technical thinking I want you to start developing.
‫It's not about necessarily the action that we want to do, but technically speaking, about what you
‫trying to change about that resource?
‫How exactly are these resources tied together and how does this ID thing work between them?