Update a vector action (manager)

PATCH /manager/vectors/{vector_id}/actions/{action_id}

Path parameters

  • vector_id integer(int32) Required

    The id of the vector

  • action_id integer(int32) Required

    The id of the vectorAction

application/json

Body Required

  • type number

    Vector action type

  • id_chat_topic number

    Chat topic id

Responses

  • 200 application/json

    returns the updated vector action

    Hide response attributes Show response attributes object
    • type integer
    • id_chat_topic integer
  • 401 application/json

    Unauthorized.

    Hide response attribute Show response attribute object
    • message string
  • 403

    Forbidden - You don't have permission to access this route

  • 404

    Not found

  • 422 application/json

    Unprocessable Content

    Hide response attributes Show response attributes object
    • message string

      Error message.

    • errors object
      Hide errors attributes Show errors attributes object
      • field array[string]

        Error message details.

      • * array[string] Additional properties

        Error message details.

PATCH /manager/vectors/{vector_id}/actions/{action_id}
curl \
 --request PATCH 'https://domain.tld/api/v2/manager/vectors/{vector_id}/actions/{action_id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"type":42.0,"id_chat_topic":42.0}'
Request examples
{
  "type": 42.0,
  "id_chat_topic": 42.0
}
Response examples (200)
{
  "type": 42,
  "id_chat_topic": 42
}
Response examples (401)
{
  "message": "Unauthorized."
}
Response examples (422)
{
  "message": "field is required! (and 3 more error)",
  "errors": {
    "field": [
      "Error message details here"
    ],
    "additionalProperty1": [
      "Error message details here"
    ],
    "additionalProperty2": [
      "Error message details here"
    ]
  }
}