Search code examples
quire-api

How to accept user configuration in a Quire app?


I am looking to create an app, (in my case better described as an automation) but would like to allow users to configure the app so it can be used by others than just myself. What is the best way to do this?

The program I have written so far is a NodeJS web server which will subscribe to webhooks from all boards (could do with config options) and hopefully add a certain tag or move tasks to a certain board whenever it needs to.

This is where the issue is: how do I let users choose which tags to add and which boards update?


Solution

  • Obviously I can't comment on how you'll have to implement your application front-end for the user. The quire-api call to add a task to a board, or addTags to a task is both:

    PUT /task/id/{projectId}/{id} or PUT /task/{oid}

    In the request payload you can specify a board and tasks to add/remove referenced by their OIDs

    e.g.:

    {
      "addTags": [
        "X6nmx9XjEO2wKbqeB1pRT43C"
      ],
      "removeTags": [
        "mPAQrYU1qt8wAYAInKRlTnvl"
      ],
      "board": "rcBHBYXZSiyDRrHrWPutatfF"
    }