GET api/Collaboration/GetCommentThreads?itemId={itemId}&revisionId={revisionId}&resolved={resolved}

Getting all threads of the specified media item

Request Information

URI Parameters

NameDescriptionTypeAdditional information
itemId

Media item ID

integer

Required

revisionId

Revision ID

integer

None.

resolved

Whether to get resolved threads

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

TODO

ObjResultOfCommentThreadsOutcome[]
NameDescriptionTypeAdditional information
Data

Collection of CommentThreadsOutcome

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": [
    {
      "geometryId": 1,
      "geometry": "sample string 2",
      "resolved": true,
      "commentsRead": true,
      "subscribed": true
    },
    {
      "geometryId": 1,
      "geometry": "sample string 2",
      "resolved": true,
      "commentsRead": true,
      "subscribed": true
    }
  ],
  "error": "sample string 1",
  "success": true,
  "errorCode": 3
}

application/xml, text/xml

Sample:
<ObjResultOfArrayOfCommentThreadsOutcomeSzI3Q8G_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:CommentThreadsOutcome>
      <d2p1:_x003C_CommentsRead_x003E_k__BackingField>true</d2p1:_x003C_CommentsRead_x003E_k__BackingField>
      <d2p1:_x003C_GeometryId_x003E_k__BackingField>1</d2p1:_x003C_GeometryId_x003E_k__BackingField>
      <d2p1:_x003C_Geometry_x003E_k__BackingField>sample string 2</d2p1:_x003C_Geometry_x003E_k__BackingField>
      <d2p1:_x003C_Resolved_x003E_k__BackingField>true</d2p1:_x003C_Resolved_x003E_k__BackingField>
      <d2p1:_x003C_Subscribed_x003E_k__BackingField>true</d2p1:_x003C_Subscribed_x003E_k__BackingField>
    </d2p1:CommentThreadsOutcome>
    <d2p1:CommentThreadsOutcome>
      <d2p1:_x003C_CommentsRead_x003E_k__BackingField>true</d2p1:_x003C_CommentsRead_x003E_k__BackingField>
      <d2p1:_x003C_GeometryId_x003E_k__BackingField>1</d2p1:_x003C_GeometryId_x003E_k__BackingField>
      <d2p1:_x003C_Geometry_x003E_k__BackingField>sample string 2</d2p1:_x003C_Geometry_x003E_k__BackingField>
      <d2p1:_x003C_Resolved_x003E_k__BackingField>true</d2p1:_x003C_Resolved_x003E_k__BackingField>
      <d2p1:_x003C_Subscribed_x003E_k__BackingField>true</d2p1:_x003C_Subscribed_x003E_k__BackingField>
    </d2p1:CommentThreadsOutcome>
  </Data>
</ObjResultOfArrayOfCommentThreadsOutcomeSzI3Q8G_P>
bool hasModels = Model.ParameterModels.Count > 0; if (hasModels) {

Parameter Information

}