BokaMera.API.Host

<back to all web services

CreateSupportCase

Requires Authentication
Requires any of the roles:bookingsupplier-administrator-write, superadmin
The following routes are available for this service:
POST/support/casesAdd a new support caseAdd a new support case to the company of the currently logged in user, only administrators are allowed to add support cases.
CreateSupportCase Parameters:
NameParameterData TypeRequiredDescription
CompanyIdbodyGuid?YesEnter the company id, if blank company id and you are an admin, your company id will be used.
TitlebodystringNoThe case title.
DescriptionbodystringNoThe case description.
CaseTypeIdbodyintNoIf the case type id.
CaseAreaIdbodyintNoIf the case area id.
SupportCaseQueryResponse Parameters:
NameParameterData TypeRequiredDescription
IdformintNoThe support case id
CompanyUserIdformGuidNoThe company user id
TitleformstringNoThe case title.
DescriptionformstringNoThe case description.
CaseStatusIdformintNoThe case status id.
CaseTypeIdformintNoIf the case type id.
CaseAreaIdformintNoIf the case area id.
CreatedByformstringNoThe case created by.
UpdatedByformstringNoThe case updated by.
SolvedByformstringNoThe case solved by.
UpdatedformDateTimeNoIf case updated date.
CreatedformDateTimeNoIf case created date.
CaseOwnerformstringNoWho owns the support case.
CaseStatusformSupportCaseStatusResponseNoThe case status information.
CaseTypeformSupportCaseTypeResponseNoThe case type information.
CaseAreaformSupportCaseAreaResponseNoThe case area information.
CommentsformList<SupportCaseCommentsResponse>NoThe case comments.
AttachmentsformList<SupportCaseAttachmentResponse>NoThe case attachments.
CaseStatusOptionsformList<SupportCaseStatusResponse>NoThe case status options to select from.
CaseTypeOptionsformList<SupportCaseTypeResponse>NoThe case type options to select from.
CaseAreaOptionsformList<SupportCaseAreaResponse>NoThe case area options to select from.
SupportCaseStatusResponse Parameters:
NameParameterData TypeRequiredDescription
IdformintNoThe status id
NameformstringNoThe status name
DescriptionformstringNoThe status description
IconformstringNoThe status icon
ColorformstringNoThe status color
SupportCaseTypeResponse Parameters:
NameParameterData TypeRequiredDescription
IdformintNoThe type id
NameformstringNoThe type name
DescriptionformstringNoThe type description
SupportCaseAreaResponse Parameters:
NameParameterData TypeRequiredDescription
IdformintNoThe area id
NameformstringNoThe area name
DescriptionformstringNoThe area description
SupportCaseCommentsResponse Parameters:
NameParameterData TypeRequiredDescription
SupportCaseIdformintNoThe case id
IdformintNoThe comments id
CommentformstringNoThe case comment
CreatedByformstringNoThe case comment created by
CreatedformDateTimeNoThe case comment created date
SupportCaseAttachmentResponse Parameters:
NameParameterData TypeRequiredDescription
IdformintNoThe attachment id
FileUrlformstringNoThe attachment file url

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /support/cases HTTP/1.1 
Host: api.bokamera.se 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"CompanyId":"00000000-0000-0000-0000-000000000000","Title":"String","Description":"String","CaseTypeId":0,"CaseAreaId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Id":0,"Title":"String","Description":"String","CaseStatusId":0,"CaseTypeId":0,"CaseAreaId":0,"CreatedBy":"String","UpdatedBy":"String","SolvedBy":"String","CaseOwner":"String","CaseStatus":{"Id":0,"Name":"String","Description":"String","Icon":"String","Color":"String"},"CaseType":{"Id":0,"Name":"String","Description":"String"},"CaseArea":{"Id":0,"Name":"String","Description":"String"},"Comments":[{"SupportCaseId":0,"Id":0,"Comment":"String","CreatedBy":"String"}],"Attachments":[{"Id":0,"FileUrl":"String"}],"CaseStatusOptions":[{"Id":0,"Name":"String","Description":"String","Icon":"String","Color":"String"}],"CaseTypeOptions":[{"Id":0,"Name":"String","Description":"String"}],"CaseAreaOptions":[{"Id":0,"Name":"String","Description":"String"}]}