BokaMera.API.Host

<back to all web services

CreateCompanyCommentSuperAdminUser

Requires Authentication
Required role:superadmin
The following routes are available for this service:
POST/superadmin/company/{CompanyId}/commentsAdds a comment to the company.
CreateCompanyCommentSuperAdminUser Parameters:
NameParameterData TypeRequiredDescription
CompanyIdqueryGuid?YesEnter the companyId for the customer
CommentbodystringYes
CommentTypebodyCommentsTypeYes
CommentsType Enum:
NameValue
NormalComment1
CallBackPhoneComment2
CallBackEmailComment3
CallBackMeetingBookedComment4
CallBackNotInterestedComment5
CompanyCommentsResponse Parameters:
NameParameterData TypeRequiredDescription
CompanyIdformGuid?No
IdformintNo
CommentformstringYes
CommentTypeIdformCommentsTypeYes
CommentTypeformCommentsTypeResponseYes
UpdatedformDateTimeNoThe updated date
CreatedformDateTimeNoThe created date
CreatedByformstringNoThe created by
CommentsTypeResponse Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
DescriptionformstringNo

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /superadmin/company/{CompanyId}/comments HTTP/1.1 
Host: testapi.bokamera.se 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"CompanyId":"00000000-0000-0000-0000-000000000000","Comment":"String","CommentType":"NormalComment"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"CompanyId":"00000000-0000-0000-0000-000000000000","Id":0,"Comment":"String","CommentTypeId":"NormalComment","CommentType":{"Id":0,"Name":"String","Description":"String"},"CreatedBy":"String"}