I'm trying to use the PUT version of this resource:
Although it is a PUT, I don't know where to specify the property and its value.
Can someone help me out?
Community moderators have prevented the ability to post new answers.
Thank you for your answer. This is different though. I successfully stored a value using JSON format. However, since it is JSON, the value stored is in the form of {value}. It's enclosed in brackets. I'm gonna try to store the value directly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you put your JSON here? Probably the issue is with the format itself...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm using HTTPBuilder with Groovy and I'm passing a list (e.g. [42]) as the body of the request. In JSON form, I assume that will be {42}. So, the body of my request is {42}, however, the PUT method does not remove the brackets when it stores the value to the comment property. I am using JSON as my content type though. So, maybe change that to TEXT or URLENC?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From the example I have mentioned in my answer: { "update": { "comment": [ { "add": { "body": "It is time to finish this task" } } ] } } "It is time to finish this task" <- this is what you have as {42} ? Content type is not important here, afaik. The important is the JSON you PUT (as-is). Do, check what exactly get's posted. Seems like a problem on a groovy side, not Confluence REST API
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm adding a property to an existing comment, so it might be different. Anyway, if I send { 484 }, the value of the property becomes { 484 } and not 484.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.