Quantifications

Quantify multiple praise items

patch/api/quantifications/multiple

Request body

praiseIdsstring[] required

Example request

{
  "params": {
    "duplicatePraise": "639b178f19296ee0f2d0585d"
  },
  "praiseIds": [
    "639b178f19296ee0f2d0585d",
    "639b178f19296ee0f2d0585e",
    "639b178f19296ee0f2d0585f"
  ]
}

Response

Praise items

_idstring required
reasonRawstring required
reasonstring required
sourceIdstring required
sourceNamestring required
scorenumber required
createdAtstring date-time required
updatedAtstring date-time required

Example response

[
  {
    "_id": "639b178f19296ee0f2d0585d",
    "reasonRaw": "for making edits in the welcome text",
    "reason": "for making edits in the welcome text",
    "sourceId": "DISCORD:810180621930070088:810180622336262195",
    "sourceName": "DISCORD:Token%20Engineering%20Commons:%F0%9F%99%8F%EF%BD%9Cpraise",
    "score": 144,
    "receiver": {
      "_id": "63b428f7d9ca4f6ff5370d05",
      "user": {
        "_id": "5f9f1b9b9b9b9b9b9b9b9b9b",
        "identityEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
        "rewardsEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
        "username": "darth"
      },
      "accountId": "098098098098098",
      "name": "darth#6755",
      "avatarId": "098098098087097",
      "platform": "DISCORD"
    },
    "giver": {
      "_id": "63b428f7d9ca4f6ff5370d05",
      "user": {
        "_id": "5f9f1b9b9b9b9b9b9b9b9b9b",
        "identityEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
        "rewardsEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
        "username": "darth"
      },
      "accountId": "098098098098098",
      "name": "darth#6755",
      "avatarId": "098098098087097",
      "platform": "DISCORD"
    },
    "forwarder": {
      "_id": "63b428f7d9ca4f6ff5370d05",
      "user": {
        "_id": "5f9f1b9b9b9b9b9b9b9b9b9b",
        "identityEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
        "rewardsEthAddress": "0xAAB27b150451726EC7738aa1d0A94505c8729bd1",
        "username": "darth"
      },
      "accountId": "098098098098098",
      "name": "darth#6755",
      "avatarId": "098098098087097",
      "platform": "DISCORD"
    },
    "quantifications": [
      {
        "_id": "639b178f19296ee0f2d0585d",
        "score": 144,
        "scoreRealized": 144,
        "dismissed": true,
        "duplicatePraise": "639b178f19296ee0f2d0585d",
        "quantifier": "639b178f19296ee0f2d0585d",
        "praise": "639b178f19296ee0f2d0585d",
        "createdAt": "2021-06-01T00:00:00.000Z",
        "updatedAt": "2021-06-01T00:00:00.000Z"
      }
    ]
  }
]

Changes

Changed in 14 of the 50 revisions of this API.48343

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 56 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the items/forwarder/name response property's minLength was decreased from 4 to 2 for the response status 200

      response-property-min-length-decreased

    • the items/giver/allOf[UserAccount]/name response property's minLength was decreased from 4 to 2 for the response status 200

      response-property-min-length-decreased

    • the items/receiver/allOf[UserAccount]/name response property's minLength was decreased from 4 to 2 for the response status 200

      response-property-min-length-decreased

    • the items/forwarder/name response property's maxLength was increased from 20 to 32 for the response status 200

      response-property-max-length-increased

    • the items/giver/allOf[UserAccount]/name response property's maxLength was increased from 20 to 32 for the response status 200

      response-property-max-length-increased

    • the items/receiver/allOf[UserAccount]/name response property's maxLength was increased from 20 to 32 for the response status 200

      response-property-max-length-increased

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 52 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 9096b31a006d210See the full diff
    • the response property items/forwarder became optional for the status 200

      response-property-became-optional

    • the items/forwarder response's property type/format changed from / to object/ for status 200

      response-property-type-changed

    • added the optional property items/forwarder/user to the response with the 200 status

      response-optional-property-added

    • removed UserAccount from the items/forwarder response property allOf list for the response status 200

      response-property-all-of-removed

    • added the required property items/forwarder/_id to the response with the 200 status

      response-required-property-added

    • added the required property items/forwarder/accountId to the response with the 200 status

      response-required-property-added

    • added the required property items/forwarder/avatarId to the response with the 200 status

      response-required-property-added

    • added the required property items/forwarder/createdAt to the response with the 200 status

      response-required-property-added

    • added the required property items/forwarder/name to the response with the 200 status

      response-required-property-added

    • added the required property items/forwarder/platform to the response with the 200 status

      response-required-property-added

    • added the required property items/forwarder/updatedAt to the response with the 200 status

      response-required-property-added

    • the response required property items/forwarder became not read-only for the status 200

      response-required-property-became-not-read-only

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 52 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • aa4804c758aa321See the full diff
    • the items/forwarder/allOf[UserAccount]/user response's property type/format changed from string/ to object/ for status 200

      response-property-type-changed

    • the items/giver/allOf[UserAccount]/user response's property type/format changed from string/ to object/ for status 200

      response-property-type-changed

    • the items/receiver/allOf[UserAccount]/user response's property type/format changed from string/ to object/ for status 200

      response-property-type-changed

    • added the required property items/forwarder/allOf[UserAccount]/user/_id to the response with the 200 status

      response-required-property-added

    • added the required property items/forwarder/allOf[UserAccount]/user/createdAt to the response with the 200 status

      response-required-property-added

    • added the required property items/forwarder/allOf[UserAccount]/user/identityEthAddress to the response with the 200 status

      response-required-property-added

    • added the required property items/forwarder/allOf[UserAccount]/user/rewardsEthAddress to the response with the 200 status

      response-required-property-added

    • added the required property items/forwarder/allOf[UserAccount]/user/roles to the response with the 200 status

      response-required-property-added

    • added the required property items/forwarder/allOf[UserAccount]/user/updatedAt to the response with the 200 status

      response-required-property-added

    • added the required property items/forwarder/allOf[UserAccount]/user/username to the response with the 200 status

      response-required-property-added

    • added the required property items/giver/allOf[UserAccount]/user/_id to the response with the 200 status

      response-required-property-added

    • added the required property items/giver/allOf[UserAccount]/user/createdAt to the response with the 200 status

      response-required-property-added

    • added the required property items/giver/allOf[UserAccount]/user/identityEthAddress to the response with the 200 status

      response-required-property-added

    • added the required property items/giver/allOf[UserAccount]/user/rewardsEthAddress to the response with the 200 status

      response-required-property-added

    • added the required property items/giver/allOf[UserAccount]/user/roles to the response with the 200 status

      response-required-property-added

    • added the required property items/giver/allOf[UserAccount]/user/updatedAt to the response with the 200 status

      response-required-property-added

    • added the required property items/giver/allOf[UserAccount]/user/username to the response with the 200 status

      response-required-property-added

    • added the required property items/receiver/allOf[UserAccount]/user/_id to the response with the 200 status

      response-required-property-added

    • added the required property items/receiver/allOf[UserAccount]/user/createdAt to the response with the 200 status

      response-required-property-added

    • added the required property items/receiver/allOf[UserAccount]/user/identityEthAddress to the response with the 200 status

      response-required-property-added

    • added the required property items/receiver/allOf[UserAccount]/user/rewardsEthAddress to the response with the 200 status

      response-required-property-added

    • added the required property items/receiver/allOf[UserAccount]/user/roles to the response with the 200 status

      response-required-property-added

    • added the required property items/receiver/allOf[UserAccount]/user/updatedAt to the response with the 200 status

      response-required-property-added

    • added the required property items/receiver/allOf[UserAccount]/user/username to the response with the 200 status

      response-required-property-added