404 on create attachment endpoint in Jira Service Desk API

I am following the documentation here: https://docs.atlassian.com/jira-servicedesk/REST/3.6.2/#servicedeskapi/request/{issueIdOrKey}/attachment and trying to create an attachment by calling the JIRA Service Desk API.

I already have the temporaryAttachmentId off of a previous call to https://docs.atlassian.com/jira-servicedesk/REST/3.6.2/#servicedeskapi/servicedesk/{serviceDeskId}/attachTemporaryFile-attachTemporaryFile.

This is my request:

JIRA request: POST /rest/servicedeskapi/request/<issue_key>/attachment

Payload: {“temporaryAttachmentIds”: [“attachmentId”], “public”: true}

Headers: {‘Authorization’: ‘Basic ’, ‘Accept’: ‘application/json’, ‘X-Atlassian-Token’: ‘no-check’, ‘X-ExperimentalApi’: ‘opt-in’, ‘Content-Type’: ‘application/json’} 84

And this is the error I get with a status of 404:

{‘errorMessage’: ‘The specified request could not be found’, ‘i18nErrorMessage’: {‘i18nKey’: ‘sd.request.not.found’, ‘parameters’: }}

Any one who has encountered this before?

Hi @SurashreeKulkarni,

Looking at the documentation can you try with

X-ExperimentalApi : true

instead?

Regards,
James.