Resize a container TTY Run in API Explorer

POST /containers/{id}/resize

Resize the TTY for a container.

Path parameters

  • id string Required

    ID or name of the container

Query parameters

  • h integer Required

    Height of the TTY session in characters

  • w integer Required

    Width of the TTY session in characters

Responses

  • 200

    no error

  • 404 text/plain

    no such container

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

  • 500 text/plain

    cannot resize container

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

POST /containers/{id}/resize
curl \
 --request POST 'http://api.example.com/v1.49/containers/{id}/resize?h=42&w=42'
Response examples (404)
{
  "message": "No such container: c2ada9df5af8"
}
Response examples (500)
{
  "message": "Something went wrong."
}