...
Make a POST request with the generated URL endpoint. To authenticate your API requests, include an Authorization header in each request. The value of this header should be the API token generated from the API Tokens page. The sample request body structure:
Code Block |
---|
{
"jql": {JQL_TO_FIND_TARGET_ISSUES}, //REQUIRED
"sourceKey": {KEY_OF_SOURCE_ISSUE}, //REQUIRED
"commentId": {ID_OF_COMMENT} //OPTIONAL
} |
...
Code Block |
---|
curl -H 'Authorization: 46f61f78-e138-4019-85a0-e239878f2c94' |
POST Request Body
Code Block |
---|
{
"jql": "issuekey = ITSM-1",
"sourceKey": "ITSM-15",
"commentId": "12345"
} |
curl example
Code Block |
---|
curl --request POST \
--url 'https://api.attach.twinit.com/44221'
--header 'Accept: application/json' \
--header 'Authorization: 46f61f78-e138-4019-85a0-e239878f2c94'
--data ' {
"jql": "issuekey = ITSM-1",
"sourceKey": "ITSM-15",
"commentId": "12345"
}' |