Link Search Menu Expand Document

Updated Fri Jun 18th 2021, 16:17 UTC

Creating an assignment

POST /conversations/:conversation/assignments

An Assignment is a link between a conversation and an assigned user (aka assignee).

Examples

Creating the assignment

Request

POST /conversations/Pvwqm5G/assignments

Body

{
  "assignee": "/users/PWApBE3"
}
Example
$ curl -i -H Accept:"application/vnd.textus+jsonld" \
    -H Authorization:"Bearer {token}" \
    -X POST /conversations/Pvwqm5G/assignments
     -d '{json: "body"}' 

Response

Status

200

Response Type

ConversationAssignment

Example
{
  "@type": "ConversationAssignment",
  "@context": "/contexts/ConversationAssignment.jsonld",
  "id": "/assignments/aB6MA91",
  "assignee": {
    "@type": "User",
    "@context": "/contexts/User.jsonld",
    "id": "/users/wqyODPA",
    "name": "Chuck Norris",
    "firstName": "Chuck",
    "lastName": "Norris",
    "email": "chuck@textus.example",
    "avatar": null,
    "automatedActor": false,
    "hasPassword": false,
    "discarded": false,
    "settings": {
      "notifications": {
        "email": true
      },
      "customSettings": {}
    },
    "memberships": "/users/wqyODPA/memberships"
  },
  "assigner": "/users/wqyODPA"
}

© 2021 TextUs