Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add Watchers API

JamesHuang
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 20, 2021

For this API (https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-watchers/#api-rest-api-3-issue-issueidorkey-watchers-get), when we try to call the "Add watchers POST endpoint,  for the request body, is there a way to use the json format instead of just String?  For example, the documentation used the one below, and the data is just string, is there a way to replace it by using json format?

 

curl --request POST \ --url 'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}/watchers' \ --user 'email@example.com:<api_token>' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '"<string>"'

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events