latestOpenAPI 3.0.02026-08-1033283.6 MB

b0608768680f

Message

Handle update topic relations

This endpoint is used to handle topic relations when update

put/messages/topics/relation

Request body

{"stackTrail":"components:schemas:UpdateTopicRelationShips:items:properties:child_id","oasType":"schema","type":"unknown"}
{"stackTrail":"components:schemas:UpdateTopicRelationShips:items:properties:parent_id","oasType":"schema","type":"unknown"}

Example request

[
  {
    "child_id": 59,
    "parent_id": 58
  },
  {
    "child_id": 60,
    "parent_id": 58
  },
  {
    "child_id": 61,
    "parent_id": 58
  },
  {
    "child_id": 70,
    "parent_id": 59
  },
  {
    "child_id": 31,
    "parent_id": 59
  }
]

Response

Handle update topic relations successfuly

{"stackTrail":"components:schemas:TopicsRelationShips:items:properties:child_id","oasType":"schema","type":"unknown"}
{"stackTrail":"components:schemas:TopicsRelationShips:items:properties:created_at","oasType":"schema","type":"unknown"}
{"stackTrail":"components:schemas:TopicsRelationShips:items:properties:id","oasType":"schema","type":"unknown"}
{"stackTrail":"components:schemas:TopicsRelationShips:items:properties:parent_id","oasType":"schema","type":"unknown"}
{"stackTrail":"components:schemas:TopicsRelationShips:items:properties:updated_at","oasType":"schema","type":"unknown"}

Example response

[
  {
    "child_id": 59,
    "created_at": "2019-04-25T09:15:20.557Z",
    "id": 1,
    "parent_id": 58,
    "updated_at": "2019-04-25T09:15:20.557Z"
  },
  {
    "child_id": 60,
    "created_at": "2019-04-25T09:15:20.557Z",
    "id": 2,
    "parent_id": 58,
    "updated_at": "2019-04-25T09:15:20.557Z"
  },
  {
    "child_id": 61,
    "created_at": "2019-04-25T09:15:20.557Z",
    "id": 3,
    "parent_id": 58,
    "updated_at": "2019-04-25T09:15:20.557Z"
  },
  {
    "child_id": 70,
    "created_at": "2019-04-25T09:15:20.557Z",
    "id": 4,
    "parent_id": 59,
    "updated_at": "2019-04-25T09:15:20.557Z"
  },
  {
    "child_id": 31,
    "created_at": "2019-04-25T09:15:20.557Z",
    "id": 5,
    "parent_id": 59,
    "updated_at": "2019-04-25T09:15:20.557Z"
  }
]