Write API JSON requirements



  • https://github.com/NodeBB/nodebb-plugin-write-api/blob/master/routes/v2/readme.md

    I'm looking at using the /topics/tag route to add some tags to a ton of topics. This documentation doesn't tell me what's required for updating tags. This is the JSON I get back from the built-in read only API:

          "tags": [
            {
              "color": "",
              "bgColor": "",
              "valueEscaped": "juniper",
              "score": 3,
              "value": "juniper"
            },
            {
              "color": "",
              "bgColor": "",
              "valueEscaped": "ipv6",
              "score": 1,
              "value": "ipv6"
            }
          ],
    

    Can I just submit something like:

          "tags": [
            {
              "value": "somenewtag"
            },
            {
              "value": "anothernewtag"
            }
          ],
    

Log in to reply
 

Suggested Topics

| |