Skip to main content
PUT
/
comments
Update comments
curl --request PUT \
  --url https://api-staging.pixwel.com/api/comments \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "_id": "5dc2eb1bd1c56a0024562983",
  "workRequest": "5dc2ead7d1c56a04453af643",
  "user": {
    "_id": "5432fc15bde09b627c8b468d",
    "name": "Anthony Momjian",
    "emailNormal": "anthony@pixwel.com",
    "groups": [
      {
        "_id": "5328d77467d621906d8b4574",
        "name": "PIXWEL",
        "$links": {
          "self": "//api-staging.pixwel.com/api/Groups/5328d77467d621906d8b4574"
        }
      }
    ]
  },
  "body": "SADfghjk",
  "urls": {
    "workRequest": "https://platform.pixwel.com/orders/manage/5dc2ead7d1c56a04453af643/previews"
  },
  "created": 1573055259,
  "$links": {
    "self": "//api-staging.pixwel.com/api/Comments/5dc2eb1bd1c56a0024562983",
    "workRequest": "//api-staging.pixwel.com/api/Workrequests/5dc2ead7d1c56a04453af643",
    "user": "//api-staging.pixwel.com/api/Users/5432fc15bde09b627c8b468d"
  },
  "replies": [
    "<unknown>"
  ]
}
'
{
  "_id": "5dc2eb1bd1c56a0024562983",
  "workRequest": "5dc2ead7d1c56a04453af643",
  "user": {
    "_id": "5432fc15bde09b627c8b468d",
    "name": "Anthony Momjian",
    "emailNormal": "anthony@pixwel.com",
    "groups": [
      {
        "_id": "5328d77467d621906d8b4574",
        "name": "PIXWEL",
        "$links": {
          "self": "//api-staging.pixwel.com/api/Groups/5328d77467d621906d8b4574"
        }
      }
    ]
  },
  "body": "SADfghjk",
  "urls": {
    "workRequest": "https://platform.pixwel.com/orders/manage/5dc2ead7d1c56a04453af643/previews"
  },
  "created": 1573055259,
  "$links": {
    "self": "//api-staging.pixwel.com/api/Comments/5dc2eb1bd1c56a0024562983",
    "workRequest": "//api-staging.pixwel.com/api/Workrequests/5dc2ead7d1c56a04453af643",
    "user": "//api-staging.pixwel.com/api/Users/5432fc15bde09b627c8b468d"
  },
  "replies": [
    "<unknown>"
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
_id
string
Example:

"5dc2eb1bd1c56a0024562983"

workRequest
string
Example:

"5dc2ead7d1c56a04453af643"

user
object
body
string
Example:

"SADfghjk"

urls
object
created
integer
Example:

1573055259

replies
any[]

Response

200 - application/json

OK

_id
string
Example:

"5dc2eb1bd1c56a0024562983"

workRequest
string
Example:

"5dc2ead7d1c56a04453af643"

user
object
body
string
Example:

"SADfghjk"

urls
object
created
integer
Example:

1573055259

replies
any[]