Link Search Menu Expand Document

Updated Fri Mar 5th 2021, 12:17 UTC

Destroying a conversation assignment

DELETE /assignments/:assignment

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

Examples

Remove an Assigned User from a Conversation

Request

DELETE /assignments/aB6MA91
Example
$ curl -i -H Accept:"application/vnd.textus+jsonld" \
    -H Authorization:"Bearer {token}" \
    -X DELETE /assignments/aB6MA91
    

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