Create

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 '{
  "assignee": "/users/PWApBE3"
}'

Response

Status

200

Response Type

ConversationAssignment

Example Body

{
  "@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": {
      "customSettings": {}
    },
    "memberships": "/users/wqyODPA/memberships"
  },
  "assigner": "/users/wqyODPA"
}

© 2024 TextUs