Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Getting API error when adding note to alert

Ramshankar
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!
March 3, 2022

Iam trying to add a note to an alert having tiny id 39 and getting the following error
Tried doing the same with IdentifierType as ID and Alias, still getting the same error

Body(In JSON)
{
"user":"ramu",
"source": "IT",
"note":"Action executed API ram 3"
}


{
"result": "Request will be processed",
"took": 0.007,
"requestId": "ed26e563-b33c-479c-bcc5-41c6ff399202"
}


{{server}}alerts/requests/ed26e563-b33c-479c-bcc5-41c6ff399202
{
"data": {
"success": false,
"action": "Add Note",
"processedAt": "2022-03-03T08:13:24.088Z",
"integrationId": "49cf8e9f-7ac7-438d-9086-3a48a940e46f",
"isSuccess": false,
"status": "[tinyId] length exceeds the maximum value [6]",
"alertId": "",
"alias": ""
},
"took": 0.004,
"requestId": "ab2b9bd7-f764-478d-9226-8c2815651590"
}

2 answers

0 votes
Nick H
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 3, 2022

Hi @Ramshankar ,

Not entirely sure I've seen the error - "status": "[tinyId] length exceeds the maximum value [6]", - but if you were trying to add a note to an alert via API, and use the Tiny ID in the parameters, it'd look like this:

nc1.jpgnc2.jpg

0 votes
Tom Russell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 3, 2022

@Ramshankar it would help if you added the query parameters you're using. Make sure to match the identifier used in the URL with the type of identifier you're using:

The error message seems to indicate you used 'identifierType=tiny' but maybe provided a full ID in the URL.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events