POST api/Collaboration/AddComment

Request Information

URI Parameters

None.

Body Parameters

AddCommentParams
NameDescriptionTypeAdditional information
GeometryId

integer

None.

ReplyToId

integer

None.

Text

string

None.

SubscriberGuids

Collection of globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "geometryId": 1,
  "replyToId": 1,
  "text": "sample string 2",
  "subscriberGuids": [
    "b028df5b-63c5-46f7-b5e3-327a375c040f",
    "82e68392-c4b7-4081-8c87-3cfc2a6f6928"
  ]
}

application/xml, text/xml

Sample:
<AddCommentParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PicaJet.Daminion.BusinessObjects">
  <_x003C_GeometryId_x003E_k__BackingField>1</_x003C_GeometryId_x003E_k__BackingField>
  <_x003C_ReplyToId_x003E_k__BackingField>1</_x003C_ReplyToId_x003E_k__BackingField>
  <_x003C_SubscriberGuids_x003E_k__BackingField xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>b028df5b-63c5-46f7-b5e3-327a375c040f</d2p1:guid>
    <d2p1:guid>82e68392-c4b7-4081-8c87-3cfc2a6f6928</d2p1:guid>
  </_x003C_SubscriberGuids_x003E_k__BackingField>
  <_x003C_Text_x003E_k__BackingField>sample string 2</_x003C_Text_x003E_k__BackingField>
</AddCommentParams>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AddCommentParams'.

Response Information

Resource Description

ObjResultOfAddCommentOutcome
NameDescriptionTypeAdditional information
Data

AddCommentOutcome

None.

Error

Error description if the operation failed

string

None.

Success

Operation result

boolean

None.

ErrorCode

Error code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "commentId": 1,
    "commentTime": "2021-09-25T00:16:40.4884356+02:00"
  },
  "error": "sample string 1",
  "success": true,
  "errorCode": 3
}

application/xml, text/xml

Sample:
<ObjResultOfAddCommentOutcomeSzI3Q8G_P xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAMClient.Models">
  <_x003C_ErrorCode_x003E_k__BackingField>3</_x003C_ErrorCode_x003E_k__BackingField>
  <_x003C_Error_x003E_k__BackingField>sample string 1</_x003C_Error_x003E_k__BackingField>
  <_x003C_Success_x003E_k__BackingField>true</_x003C_Success_x003E_k__BackingField>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/PicaJet.Daminion.BusinessObjects">
    <d2p1:_x003C_CommentId_x003E_k__BackingField>1</d2p1:_x003C_CommentId_x003E_k__BackingField>
    <d2p1:_x003C_CommentTime_x003E_k__BackingField>2021-09-25T00:16:40.4884356+02:00</d2p1:_x003C_CommentTime_x003E_k__BackingField>
  </Data>
</ObjResultOfAddCommentOutcomeSzI3Q8G_P>
bool hasModels = Model.ParameterModels.Count > 0; if (hasModels) {

Parameter Information

parameters

Property Description
GeometryId (Int64)

				
ReplyToId (Nullable`1)

				
Text (String)

				
SubscriberGuids (Guid[])

				
}