@Path(value="/companies/{companyId}/support-tickets")
@Consumes(value="application/json")
@Produces(value="application/vnd.ilandcloud.api.v1.0+json")
public interface CompanySupportResource
Modifier and Type | Method and Description |
---|---|
SupportTicketAttachmentDetailsResponse |
addTicketAttachment(String companyId,
int ticketId,
SupportTicketAttachmentCreateRequest attachment)
Add an attachment to a support ticket.
|
SupportTicketCommentResponse |
addTicketComment(String companyId,
int ticketId,
SupportTicketCommentCreateRequest newComment)
Add a comment to a support ticket.
|
SupportTicketResponse |
createSupportTicket(String companyId,
SupportTicketCreateRequest newSupportTicket)
Add a new support ticket.
|
SupportRegardingOptionListResponse |
getRegardingOptions(String companyId)
Return a list of regarding options, service options, and categories
applicable to opening support tickets.
|
InputStream |
getTicketAttachment(String companyId,
int ticketId,
int attachmentId)
Get the file attached to a support ticket.
|
SupportTicketAttachmentDetailsListResponse |
getTicketAttachmentList(String companyId,
int ticketId)
Get a list of files attached to the support ticket.
|
SupportTicketResponse |
getTicketById(String companyId,
int ticketId)
Get a support ticket by its ID.
|
SupportTicketCommentListResponse |
getTicketComments(String companyId,
int ticketId)
Get support ticket comments for a specified support ticket.
|
SupportTicketListResponse |
getTicketsForCompany(String companyId,
Integer offset,
Integer limit)
Get all support tickets for a company.
|
IsAttachmentDownloadableResponse |
isAttachmentDownloadable(String companyId,
int ticketId,
int attachmentId)
Return whether the attachment is available for download.
|
SupportTicketResponse |
updateSupportTicket(String companyId,
int ticketId,
SupportTicketUpdateRequest supportTicket)
Updates a support ticket.
|
@POST @Consumes(value="application/json") SupportTicketResponse createSupportTicket(@PathParam(value="companyId") String companyId, SupportTicketCreateRequest newSupportTicket)
'regarding_id' (required) : is what the ticket is regarding. 'service_id' (required) : refers to the specific service option. 'category_id' (optional) : the category option of the service.
Find the regarding, service and category ids by using the
getRegardingOptions(String)
method.
companyId
- company identifiernewSupportTicket
- specification for adding a new support ticket@PUT @Path(value="/{ticketId}") @Consumes(value="application/json") SupportTicketResponse updateSupportTicket(@PathParam(value="companyId") String companyId, @PathParam(value="ticketId") int ticketId, SupportTicketUpdateRequest supportTicket)
companyId
- company identifierticketId
- the id of the ticket to updatesupportTicket
- updated support ticket@POST @Path(value="/{ticketId}/comments") @Consumes(value="application/json") SupportTicketCommentResponse addTicketComment(@PathParam(value="companyId") String companyId, @PathParam(value="ticketId") int ticketId, SupportTicketCommentCreateRequest newComment)
companyId
- the company identifiernewComment
- specification for adding a new new support ticket commentticketId
- support request ID@GET @Path(value="/{ticketId}") SupportTicketResponse getTicketById(@PathParam(value="companyId") String companyId, @PathParam(value="ticketId") int ticketId)
companyId
- the company identifierticketId
- support ticket id@GET SupportTicketListResponse getTicketsForCompany(@PathParam(value="companyId") String companyId, @QueryParam(value="offset") Integer offset, @QueryParam(value="limit") Integer limit)
companyId
- the company identifieroffset
- the page numberlimit
- the page size (maximum is 100)@GET @Path(value="/{ticketId}/comments") SupportTicketCommentListResponse getTicketComments(@PathParam(value="companyId") String companyId, @PathParam(value="ticketId") int ticketId)
companyId
- the company identifierticketId
- support request ID@POST @Path(value="/{ticketId}/attachments") @Consumes(value="multipart/form-data") SupportTicketAttachmentDetailsResponse addTicketAttachment(@PathParam(value="companyId") String companyId, @PathParam(value="ticketId") int ticketId, SupportTicketAttachmentCreateRequest attachment)
companyId
- the company identifierattachment
- multipart form inputticketId
- the support ticket ID to attach file to@GET @Path(value="/{ticketId}/attachments") SupportTicketAttachmentDetailsListResponse getTicketAttachmentList(@PathParam(value="companyId") String companyId, @PathParam(value="ticketId") int ticketId)
companyId
- the company identifierticketId
- support ticket ID@GET @Path(value="/{ticketId}/attachments/{attachmentId}") @Produces(value="application/vnd.ilandcloud.api.v1.0+octet-stream") InputStream getTicketAttachment(@PathParam(value="companyId") String companyId, @PathParam(value="ticketId") int ticketId, @PathParam(value="attachmentId") int attachmentId)
companyId
- the company identifierticketId
- support ticket IDattachmentId
- attachment ID@GET @Path(value="/{ticketId}/attachments/{attachmentId}/is-downloadable") IsAttachmentDownloadableResponse isAttachmentDownloadable(@PathParam(value="companyId") String companyId, @PathParam(value="ticketId") int ticketId, @PathParam(value="attachmentId") int attachmentId)
companyId
- companyId IDticketId
- ticket IDattachmentId
- attachment ID@GET @Path(value="/regarding-options") SupportRegardingOptionListResponse getRegardingOptions(@PathParam(value="companyId") String companyId)
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.