Attachment

Attachments operations


Parameters

Name In Type Required Description
ticketId path string true The ticket id in MasMovil ticketing tool. You can use either ID or KEY.
ticketing-provider header string true Acronym identifying the underlying ticketing tool where the tickets are. JAM (Jira Amarillo) , JCC (Jira CC), TGJ (TGJira), JNEXT (JiraNext)
body body Attachment true The properties ticketId, name and data are required. Data must be base64 encoded.

Enumerated Values

Property Values
ticketing-provider one of [JAM, JCC, TGJ, JNEXT]

Request body - instance of Attachment

1
2
3
4
5
{
  "name": "MYSIM_3847484.pdf",
  "data": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxITEhUSEhMVFhUXGBcVFxUVFRUVF...",
  "mimeType": "image/jpeg"
}
Name Type Required Description
name string true File name
data string true File content in base64 format
mimeType string false The file mime type. See https://docs.w3cub.com/http/basics_of_http/mime_types/complete_list_of_mime_types

Request example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12

curl -X POST https://ticketing.sta.masstack.com/v2/ticket/{ticketId}/attachment \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "ticketing-provider: string" \
  -H "Authorization: Bearer {access-token}" \
 --data-raw "{
  'name': 'MYSIM_3847484.pdf',
  'data': '/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxITEhUSEhMVFhUXGBcVFxUVFRUVF...',
  'mimeType': 'image/jpeg'
}" 

Responses

Code Meaning Description Schema
201 Created Attachment Created synchronous response AttachmentResponse
400 Bad Request Bad Request Error_400
401 Unauthorized Unauthorized Error_401
404 Not Found Not Found Error_404
500 Internal Server Error Internal Server Error Error_500

Parameters

Name In Type Required Description
ticketId path string true The ticket id in MasMovil ticketing tool. You can use either ID or KEY.
attachmentId path string true Attachment Id
ticketing-provider header string true Acronym identifying the underlying ticketing tool where the tickets are. JAM (Jira Amarillo) , JCC (Jira CC), TGJ (TGJira), JNEXT (JiraNext)

Enumerated Values

Property Values
ticketing-provider one of [JAM, JCC, TGJ, JNEXT]

Request example

1
2
3
4
5
6

curl -X GET https://ticketing.sta.masstack.com/v2/ticket/{ticketId}/attachment/{attachmentId} \
  -H "Accept: application/json" \
  -H "ticketing-provider: string" \
  -H "Authorization: Bearer {access-token}"

Responses

Code Meaning Description Schema
200 OK Attachment GET response AttachmentGETResponse
400 Bad Request Bad Request Error_400
401 Unauthorized Unauthorized Error_401
404 Not Found Not Found Error_404
500 Internal Server Error Internal Server Error Error_500

Parameters

Name In Type Required Description
attachmentId path string true Attachment Id
ticketing-provider header string true Acronym identifying the underlying ticketing tool where the tickets are. JAM (Jira Amarillo) , JCC (Jira CC), TGJ (TGJira), JNEXT (JiraNext)

Enumerated Values

Property Values
ticketing-provider one of [JAM, JCC, TGJ, JNEXT]

Request example

1
2
3
4
5
6

curl -X DELETE https://ticketing.sta.masstack.com/v2/attachment/{attachmentId} \
  -H "Accept: application/json" \
  -H "ticketing-provider: string" \
  -H "Authorization: Bearer {access-token}"

Responses

Code Meaning Description Schema
204 No Content No content None
400 Bad Request Bad Request Error_400
401 Unauthorized Unauthorized Error_401
404 Not Found Not Found Error_404
500 Internal Server Error Internal Server Error Error_500

Endpoints

Ticket

    Comment

      Attachment

        IssueLink

          IssueLinkTypes

            Grid

              Remotelink