Resize an exec instance Run in API Explorer

POST /exec/{id}/resize

Resize the TTY session used by an exec instance. This endpoint only works if tty was specified as part of creating and starting the exec instance.

Path parameters

  • id string Required

    Exec instance ID

Query parameters

  • h integer

    Height of the TTY session in characters

  • w integer

    Width of the TTY session in characters

Responses

  • 200

    No error

  • 400 application/json

    bad parameter

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

  • 404 application/json

    No such exec instance

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

  • 500 application/json

    Server error

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

POST /exec/{id}/resize
curl \
 --request POST 'http://api.example.com/v1.44/exec/{id}/resize'
Response examples (400)
{
  "message": "Something went wrong."
}
Response examples (400)
{
  "message": "Something went wrong."
}
Response examples (404)
{
  "message": "Something went wrong."
}
Response examples (404)
{
  "message": "Something went wrong."
}
Response examples (500)
{
  "message": "Something went wrong."
}
Response examples (500)
{
  "message": "Something went wrong."
}