Skip to main content
Solved

How do I create a new card using the API and add it to a folder (formerly "board")?


Neil Essig

I am trying to create a new card and add it to a specific board. Here is the code I have. Everything is working correctly, but I am not able to get the card to show up on the board.

collection: { id: 'COLLECTIONID' },
    preferredPhrase: 'My New Card',
    content: 'The content for my card',
    shareStatus: 'TEAM',
    boards: [{
        action: {
            actionType: 'add',
            id: 'BOARDID'

        }
    }]

 

Best answer by Joe Duffy

Hi @Neil Essig!

With the recent updates to our hierarchy within Guru, we have switched from Boards to Folders. Would you mind trying out the snippet below instead?

collection: { id: 'COLLECTIONID' },
    preferredPhrase: 'My New Card',
    content: 'The content for my card',
    shareStatus: 'TEAM',
    folderIds: ['folderId1','folderId2']

We realize we have a vendor issue with our API documentation around this particular endpoint and are working to get it fixed.

Thanks!

Joe

View original
Did this post help you find an answer to your question?

Joe Duffy
Guru Employee
Forum|alt.badge.img
  • Guru Employee
  • August 15, 2023

Hi @Neil Essig!

With the recent updates to our hierarchy within Guru, we have switched from Boards to Folders. Would you mind trying out the snippet below instead?

collection: { id: 'COLLECTIONID' },
    preferredPhrase: 'My New Card',
    content: 'The content for my card',
    shareStatus: 'TEAM',
    folderIds: ['folderId1','folderId2']

We realize we have a vendor issue with our API documentation around this particular endpoint and are working to get it fixed.

Thanks!

Joe


Neil Essig wrote:

I am trying to create a new card and add it to a specific board. Here is the code I have. Everything is working correctly, but I am not able to get the card to show up on the board.

collection: { id: 'COLLECTIONID' },
    preferredPhrase: 'My New Card',
    content: 'The content for my card',
    shareStatus: 'TEAM',
    boards: [{
        action: {
            actionType: 'add',
            id: 'BOARDID'

        }
    }]

 

Sounds like you've got the right idea, but there might be a small detail missing or an API constraint. Have you checked if the board ID is correctly specified and that the necessary permissions are set? Also, ensure that your API endpoint accepts the structure you're sending. Keep at it, you're close


Neil Essig

Thanks @Joe Duffy ! That did the trick.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings