class Attio::Attribute

def archive(**opts)

Archive this attribute
def archive(**opts)
  raise InvalidRequestError, "Cannot archive an attribute without an ID" unless persisted?
  response = self.class.send(:execute_request, :POST, "#{resource_path}/archive", {}, opts)
  update_from(response[:data] || response)
  self
end