Groovy (Low-code)SDK Functions (Groovy)RESTHeadersrest.acceptOn this pagerest.accept rest.accept(type) Description Sets the accept header. Parameters ParameterTypeExplanationtypeStringThe header type to accept Example http = option.resthttp.accept("application/json")