---
title: /v1/annotations/{uuid}/review
slug: beta-developer-docs
docTags: 
createdAt: 2024-11-18T10:12:21.918Z
---

{
  "id": "eTaAtB5kX6oo8vdSjpWwA",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "/v1/annotations/{uuid}/review",
    "servers": [],
    "name": "",
    "description": "Add a review to an annotation",
    "contentType": "application/json",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "uuid",
          "type": "string<uuid>",
          "description": ""
        }
      ],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "",
          "customType": "ReviewRequestDto",
          "schema": [
            {
              "name": "feedbackItems",
              "kind": "optional",
              "type": "array",
              "description": "",
              "modelRef": "#/components/schemas/FeedbackItemIncomingDto",
              "customType": "FeedbackItemIncomingDto[]",
              "schema": [
                {
                  "name": "sensorId",
                  "kind": "optional",
                  "type": "string",
                  "example": ""
                },
                {
                  "name": "frameId",
                  "kind": "optional",
                  "type": "string",
                  "example": ""
                },
                {
                  "name": "objectId",
                  "kind": "optional",
                  "type": "string",
                  "example": ""
                },
                {
                  "name": "pin",
                  "kind": "optional",
                  "type": "object",
                  "description": "",
                  "modelRef": "#/components/schemas/PublicFeedbackMemberPinDto",
                  "customType": "PublicFeedbackMemberPinDto",
                  "schema": [
                    {
                      "name": "x",
                      "kind": "required",
                      "type": "number<double>",
                      "example": ""
                    },
                    {
                      "name": "y",
                      "kind": "required",
                      "type": "number<double>",
                      "example": ""
                    },
                    {
                      "name": "z",
                      "kind": "optional",
                      "type": "number<double>",
                      "example": ""
                    }
                  ]
                },
                {
                  "name": "description",
                  "kind": "optional",
                  "type": "string",
                  "example": ""
                },
                {
                  "name": "suggestedProperty",
                  "kind": "optional",
                  "type": "object",
                  "description": "",
                  "modelRef": "#/components/schemas/PublicFeedbackSuggestedPropertyDto",
                  "customType": "PublicFeedbackSuggestedPropertyDto",
                  "schema": [
                    {
                      "name": "propertyName",
                      "kind": "required",
                      "type": "string",
                      "example": ""
                    },
                    {
                      "name": "suggestedPropertyValue",
                      "kind": "required",
                      "type": "string",
                      "example": ""
                    }
                  ]
                },
                {
                  "name": "errorTypeId",
                  "kind": "required",
                  "type": "string<uuid>",
                  "example": ""
                },
                {
                  "name": "metadata",
                  "kind": "optional",
                  "type": "object",
                  "description": "",
                  "modelRef": "#/components/schemas/Map_String",
                  "customType": "Map_String",
                  "schema": []
                }
              ]
            },
            {
              "name": "workflow",
              "kind": "required",
              "type": "string",
              "description": "",
              "modelRef": "#/components/schemas/ReviewWorkflow",
              "customType": "ReviewWorkflow",
              "schema": []
            },
            {
              "name": "accepted",
              "kind": "required",
              "type": "boolean",
              "example": ""
            }
          ],
          "modelRef": "#/components/schemas/ReviewRequestDto",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "Enveloped_ReviewResponseDto",
            "schema": [
              {
                "name": "data",
                "kind": "required",
                "type": "object",
                "description": "",
                "modelRef": "#/components/schemas/ReviewResponseDto",
                "customType": "ReviewResponseDto",
                "schema": [
                  {
                    "name": "createdReviewId",
                    "kind": "required",
                    "type": "string<uuid>",
                    "example": ""
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/Enveloped_ReviewResponseDto",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "Bad request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "BadRequest",
            "schema": [
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "example": ""
              },
              {
                "name": "errorCode",
                "kind": "optional",
                "type": "string",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/BadRequest",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "Unauthorized",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "Unauthorized",
            "schema": [
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/Unauthorized",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "403",
        "description": "Forbidden",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "Forbidden",
            "schema": [
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/Forbidden",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "404",
        "description": "Not found",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "NotFound",
            "schema": [
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/NotFound",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "413",
        "description": "Payload too large",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "PayloadTooLarge",
            "schema": [
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/PayloadTooLarge",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "500",
        "description": "Internal server error",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "InternalServerError",
            "schema": [
              {
                "name": "message",
                "kind": "required",
                "type": "string",
                "example": ""
              }
            ],
            "modelRef": "#/components/schemas/InternalServerError",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "ozm8aqUH0mdOauz6eWBPl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --location --globoff '/v1/annotations/{uuid}/review' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json' \\\n--data '{\n  \"feedbackItems\": [\n    {\n      \"pin\": {\n        \"x\": 0,\n        \"y\": 0\n      },\n      \"suggestedProperty\": {\n        \"propertyName\": \"\",\n        \"suggestedPropertyValue\": \"\"\n      },\n      \"errorTypeId\": \"\"\n    }\n  ],\n  \"workflow\": \"\",\n  \"accepted\": false\n}'"
        },
        {
          "id": "1xveks3MYvGzH3ZxDaj4P",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"Accept\", \"application/json\");\nmyHeaders.append(\"Content-Type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"feedbackItems\": [\n      {\n         \"pin\": {\n            \"x\": 0,\n            \"y\": 0\n         },\n         \"suggestedProperty\": {\n            \"propertyName\": \"\",\n            \"suggestedPropertyValue\": \"\"\n         },\n         \"errorTypeId\": \"\"\n      }\n   ],\n   \"workflow\": \"\",\n   \"accepted\": false\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"/v1/annotations/{uuid}/review\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "UCpLxHbPkMcSoTANIiz6d",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"/v1/annotations/{uuid}/review\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Post.new(url)\nrequest[\"Accept\"] = \"application/json\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"feedbackItems\": [\n      {\n         \"pin\": {\n            \"x\": 0,\n            \"y\": 0\n         },\n         \"suggestedProperty\": {\n            \"propertyName\": \"\",\n            \"suggestedPropertyValue\": \"\"\n         },\n         \"errorTypeId\": \"\"\n      }\n   ],\n   \"workflow\": \"\",\n   \"accepted\": false\n})\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "KSTFFs0_rp8JLcDAdM37i",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"/v1/annotations/{uuid}/review\"\n\npayload = json.dumps({\n   \"feedbackItems\": [\n      {\n         \"pin\": {\n            \"x\": 0,\n            \"y\": 0\n         },\n         \"suggestedProperty\": {\n            \"propertyName\": \"\",\n            \"suggestedPropertyValue\": \"\"\n         },\n         \"errorTypeId\": \"\"\n      }\n   ],\n   \"workflow\": \"\",\n   \"accepted\": False\n})\nheaders = {\n   'Accept': 'application/json',\n   'Content-Type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "ozm8aqUH0mdOauz6eWBPl"
    },
    "results": {
      "languages": [
        {
          "id": "St6LgqMiffh90glbueIva",
          "language": "200",
          "code": "{\n  \"data\": {\n    \"createdReviewId\": \"\"\n  }\n}"
        },
        {
          "id": "u7s0mhOypn_FDonmeeNlH",
          "language": "400",
          "code": "// Bad request\n{\n  \"message\": \"\",\n  \"errorCode\": \"\"\n}"
        },
        {
          "id": "_vsO9bG1a0bMQ5lVc9L_a",
          "language": "401",
          "code": "// Unauthorized\n{\n  \"message\": \"\"\n}"
        },
        {
          "id": "YtUxm1OFCc6ZG35lCcm7C",
          "language": "403",
          "code": "// Forbidden\n{\n  \"message\": \"\"\n}"
        },
        {
          "id": "zdeRQ7-50R1jGwKzxJtxe",
          "language": "404",
          "code": "// Not found\n{\n  \"message\": \"\"\n}"
        },
        {
          "id": "M5UOMFDWnNfI7gxItE6hn",
          "language": "413",
          "code": "// Payload too large\n{\n  \"message\": \"\"\n}"
        },
        {
          "id": "UDTKuBp7fDltDjCGeP2xk",
          "language": "500",
          "code": "// Internal server error\n{\n  \"message\": \"\"\n}"
        }
      ],
      "selectedLanguageId": "St6LgqMiffh90glbueIva"
    }
  },
  "children": [
    {
      "id": "PAibGnbmlZggbgFu4DGtZ",
      "type": "paragraph",
      "children": [
        {
          "text": "Add a review to an annotation"
        }
      ]
    }
  ]
}