{
  "post": {
    "tags": ["Dieline"],
    "summary": "Start a session",
    "description": "Starts a session by sending resUuid and measurementUnit to an external API and returns the resize-token in the response header.",
    "security": [{ "Dieline-Domain": [] }, { "Dieline-Authentication": [] }],
    "requestBody": {
      "required": true,
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "resUuid": {
                "type": "string",
                "format": "uuid",
                "example": "c6041fea-736b-4d19-92cd-5cd37cddb4dc"
              },
              "measurementUnit": {
                "type": "string",
                "example": "mm"
              }
            },
            "required": ["resUuid", "measurementUnit"]
          }
        }
      }
    },
    "responses": {
      "204": {
        "description": "Session started successfully",
        "headers": {
          "resize-token": {
            "description": "Token returned from the external session API",
            "schema": {
              "type": "string"
            }
          },
          "resize-token-life": {
            "description": "Lifetime of the resize token in seconds",
            "schema": {
              "type": "integer",
              "example": 3599
            }
          }
        }
      }
    }
  }
}
