https://developer.zendesk.com/rest_api/docs/core/tickets#update-many-tickets
961155
def tickets_update_many(self, data, ids=None, **kwargs):
        ""
        api_path = "/api/v2/tickets/update_many.json"
        api_query = {}
        if "query" in kwargs.keys():
            api_query.update(kwargs["query"])
            del kwargs["query"]
        if ids:
            api_query.update({
                "ids": ids,
            })
        return self.call(api_path, query=api_query, method="PUT", data=data, **kwargs)
632445
function() {

		var new_refresh_queues = [],
			current_level = this._min_scope_refresh_level,
			count_levels = this._scope_refresh_queues.length,
			current_queue,
			i,
			count,
			new_level_queue,
			ticket;

		for (;current_level < count_levels; current_level++) {

			if (current_level in this._scope_refresh_queues) {

				current_queue = this._scope_refresh_queues[current_level];
				i = this._scope_refresh_current_indices[current_level] || 0;
				count = current_queue.length;
				new_level_queue = [];

				for (; i < count; i++) {

					if (current_queue[i]) {

						ticket = current_queue[i];
						ticket.index = new_level_queue.push(ticket) - 1;

					}

				}

				new_refresh_queues[current_level] = new_level_queue;

			}

		}

		return new_refresh_queues;

	}
815560
def ticket_audits(self, ticket_id, **kwargs):
        ""
        api_path = "/api/v2/tickets/{ticket_id}/audits.json"
        api_path = api_path.format(ticket_id=ticket_id)
        return self.call(api_path, **kwargs)
1320017
def show(self, ticket_field, custom_field_option):
        
        return self._query_zendesk(self.endpoint.show, 'custom_field_option', ticket_field, custom_field_option)
138982
def macros_update_many(self, data, **kwargs):
        ""
        api_path = "/api/v2/macros/update_many.json"
        return self.call(api_path, method="PUT", data=data, **kwargs)
559875
public function update(Request $request, $id)
    {
        $this->validate($request, [
            'subject'     => 'required|min:3',
            'content'     => 'required|min:6',
            'priority_id' => 'required|exists:ticketit_priorities,id',
            'category_id' => 'required|exists:ticketit_categories,id',
            'status_id'   => 'required|exists:ticketit_statuses,id',
            'agent_id'    => 'required',
        ]);

        $ticket = $this->tickets->findOrFail($id);

        $ticket->subject = $request->subject;

        $ticket->setPurifiedContent($request->get('content'));

        $ticket->status_id = $request->status_id;
        $ticket->category_id = $request->category_id;
        $ticket->priority_id = $request->priority_id;

        if ($request->input('agent_id') == 'auto') {
            $ticket->autoSelectAgent();
        } else {
            $ticket->agent_id = $request->input('agent_id');
        }

        $ticket->save();

        session()->flash('status', trans('ticketit::lang.the-ticket-has-been-modified'));

        return redirect()->route(Setting::grab('main_route').'.show', $id);
    }
914475
def ticket_metrics(self, ticket_id, **kwargs):
        ""
        api_path = "/api/v2/tickets/{ticket_id}/metrics.json"
        api_path = api_path.format(ticket_id=ticket_id)
        return self.call(api_path, **kwargs)
1009484
def ticket_skips(self, ticket_id, **kwargs):
        ""
        api_path = "/api/v2/tickets/{ticket_id}/skips.json"
        api_path = api_path.format(ticket_id=ticket_id)
        return self.call(api_path, **kwargs)
1141129
def ticket_delete(self, id, **kwargs):
        ""
        api_path = "/api/v2/tickets/{id}.json"
        api_path = api_path.format(id=id)
        return self.call(api_path, method="DELETE", **kwargs)
462647
def update(self, request, _id):
        
        _id = deserialize(_id)

        to_update = self.collection.find_one({'_id': _id})
        if to_update:
            document = self.collection(dict(to_update, **request.json))
            document.updated_at = datetime.utcnow()

            updated = document.update()
            return Response(
                response=serialize(updated),
                status=(
                    200 if not all(
                        key in updated for key in [
                            'error_code', 'error_type', 'error_message'
                        ]
                    ) else 400
                )
            )
        else:
            return Response(
                response=serialize(
                    DocumentNotFoundError(self.collection.__name__, _id)
                ),
                status=400
            )
82291
def delete_tickets(tickets)
      # TODO: Take Ticket objects, too, and pull out IDs.
      xml = make_xml('TicketDeleteRequest')
      tickets.each do |id|
        xml.add_element('Ticket', { 'id' => id })
      end

      (execute xml, '1.2').success
    end
1048615
def ticket_tags(self, id, **kwargs):
        ""
        api_path = "/api/v2/tickets/{id}/tags.json"
        api_path = api_path.format(id=id)
        return self.call(api_path, **kwargs)
30966
public function update(Request $request, Ticket $ticket)
    {
        $this->authorize('publicUpdate', $ticket);

        $this->validate($request, [
            'subject' => 'required|max:255',
        ]);

        $ticket->update([
            'subject' => $request->subject,
        ]);

        return redirect()->route('laralum_public::tickets.show', ['ticket' => $ticket->id])
            ->with('success', __('laralum_tickets::general.updated', ['id' => $ticket->id]));
    }
1084656
def incremental_tickets_list(self, include=None, start_time=None, **kwargs):
        ""
        api_path = "/api/v2/incremental/tickets.json"
        api_query = {}
        if "query" in kwargs.keys():
            api_query.update(kwargs["query"])
            del kwargs["query"]
        if include:
            api_query.update({
                "include": include,
            })
        if start_time:
            api_query.update({
                "start_time": start_time,
            })
        return self.call(api_path, query=api_query, **kwargs)
1368487
def get_ticket(self, ticket_id):
        
        mask = """mask[id, title, assignedUser[firstName, lastName],status,
                  createDate,lastEditDate,updates[entry,editor],updateCount, priority]"""
        return self.ticket.getObject(id=ticket_id, mask=mask)
461165
function update(req, res, next) {
    for (var key in req.body) {
      req.body[key] = utils.toNative(req.body[key])
    }
    var resource = db(req.params.resource)
      .update(utils.toNative(req._internal.filters.id), req.body)
    if (resource) {
      res.jsonp(resource)
    } else {
      res.status(404).jsonp({})
    }
  }
859278
public function updateTicket(TicketInterface $ticket, TicketMessageInterface $message = null)
    {
        $this->storageManager('persist', $ticket);

        if (is_null($ticket->getId())) {
            $this->fireEvent(TicketEvents::TICKET_CREATE, $ticket);
            $this->storageManager('persist', $ticket);
        } else {
            $this->fireEvent(TicketEvents::TICKET_UPDATE, $ticket);
        }

        if (!\is_null($message)) {
            $message->setTicket($ticket);
            $this->storageManager('persist', $message);
        }

        $this->storageManager('flush');

        return $ticket;
    }