In the following URL, It is enough to create a new card with multiple members by assigning a array whose element is the ID of members by strings.
https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-post
---------------------------
idMembers
Array<string>
Comma-separated list of member IDs to add to the card
---------------------------
But, I can't create new card in this way, and the error is {"message":"Invalid objectId","error":"ERROR"} .
How can I create ? It is helpful to show a sample code to do this.
My code is as follows:
var payload =
{"key": "XXXXXXXXXXXXXXXXXXXXXX",
"token": "XXXXXXXXXXXXXXXXXXXXXX",
"idList" : "XXXXXXXXXXXXXXXXXXXXXX",
"name" : "aaa",
"idMembers": ["Mr. aaa","Mr. bbb"],
var option =
{"method":"POST",
"payload":payload
};
UrlFetchApp.fetch(URL,option);