Skip to content

Response

Sanif Himani edited this page Apr 24, 2024 · 2 revisions

Every request made using the client will return a Monday::Response object.

This object provides several methods to access different parts of the response:

  • status: The HTTP status code returned by the request.

  • body: The main content of the response.

  • headers: Any headers with the response.

  • success?: A method that returns true or false based on the status code and response content, indicating whether the request was successful.

Use the success? method to check if the API call was successful since the Monday.com API may return a 200 status code with an error message in the response body.

Clone this wiki locally