I used the POST request to this api call: https://api.trello.com/1/boards/.
I named the board and put in the relevant info. The request returns a 200 OK status and I get json back with a url to the board. The first board I created, I was able to get to using the url. But I created a second board and I can't get to it with the url. I also can't search for it by name using the Trello API or by typing in the name of the board in the web interface (for either boards).
How can I create a board that is searchable and able to be found?
Here's the request in node for the second board:
var options = { method: 'POST',
url: 'https://api.trello.com/1/boards/',
qs:
{ name: 'Test Create Board 2',
defaultLabels: 'true',
defaultLists: 'true',
idOrganization: '53c6704277052fbf73abc702',
idBoardSource: '59529021034d0b27e6be620e',
keepFromSource: 'lists',
prefs_permissionLevel: 'org',
prefs_selfJoin: 'true' } };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
Here's the response I get back:
{ "id": "59765969a4b726efee6381c6", "name": "Test Create Board 2", "desc": "", "descData": null, "closed": false, "idOrganization": "53c6704277052fbf73abc702", "pinned": false, "url": "https://trello.com/b/gz2Hq7YQ/test-create-board-2", "shortUrl": "https://trello.com/b/gz2Hq7YQ", "prefs": { "permissionLevel": "org", "voting": "disabled", "comments": "members", "invitations": "members", "selfJoin": true, "cardCovers": true, "cardAging": "regular", "calendarFeedEnabled": false, "background": "blue", "backgroundImage": null, "backgroundImageScaled": null, "backgroundTile": false, "backgroundBrightness": "dark", "backgroundColor": "#0079BF", "canBePublic": true, "canBeOrg": true, "canBePrivate": true, "canInvite": true }, "labelNames": { "green": "Style", "yellow": "HLN", "orange": "Sponsorship", "red": "Tech", "purple": "Global", "blue": "Money", "sky": "", "lime": "", "pink": "Entertainment", "black": "Priority" } }
Community moderators have prevented the ability to post new answers.
Looks like the board was created successfully. The problem may be that you don't have access to the board. If you create the board with a token for another user, and don't add yourself to the board (or make the board public), your user will not be visible/findable by you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.