Dominio de acciones
snippet
Todas las acciones que este dominio expone vía gitlab_execute_action, del manifiesto gitlab://tools. Cada entrada se despliega a su descripción completa y sus parámetros obligatorios.
34 · acciones6 · destructivas17 · solo lectura
Contado con un token Free contra gitlab.com, que es el único host con el que habla este endpoint: para usarlo contra una instancia self-managed, levanta tú el servidor — su documentación lo cubre. El catálogo depende del token que pregunta, así que el recuento se mueve con su tier y con sus permisos: los tiers superiores exponen más acciones, y los dominios de administración solo aparecen a tokens autorizados a usarlos. Por eso las cifras difieren en otros sitios: el proyecto upstream cuenta 868 operaciones en Community Edition y hasta 1.094 en el tier más alto de GitLab.com, mientras que este despliegue publica 768 porque es solo-OAuth y actúa con tu token, así que los dominios de administración que una cuenta sin admin no puede llamar no aparecen nunca. Las tres describen el mismo catálogo, contado desde tres sitios distintos.
Cada entrada dice también qué necesita un token de acceso personal fine-grained de GitLab para ejecutarla, tal como lo declara GitLab 19.4.1: todos los permisos de una línea, en uno de los ámbitos indicados. Cuando hay alternativas, basta con cualquiera.
Volver a la ficha del servidor
Snippet Contentsolo lecturasnippet.contentRead a personal snippet's raw content. Returns: the snippet ID and raw text content. See also:
snippet.get,snippet.file_content.Parámetros obligatorios:
snippet_id (integer)Token fine-grained:
Snippet: Readen usuario
Snippet Createsnippet.createCreate a personal snippet. Returns: the created snippet with ID, visibility, author, files, and web URL. See also:
snippet.get,snippet.update,snippet.list.Parámetros obligatorios:
title (string)Al menos uno de:
file_name (string)+content (string)ofiles (array)Token fine-grained:
Snippet: Createen usuario
Snippet Deletedestructivasnippet.deleteDelete a personal snippet permanently. Returns: a success confirmation. See also:
snippet.get,snippet.list.Parámetros obligatorios:
snippet_id (integer)Token fine-grained:
Snippet: Deleteen usuario
Add Snippet Discussion Notesnippet.discussion_add_noteAdd a reply note to an existing snippet discussion thread. Returns: the created note (author, body, timestamps). See also:
snippet.discussion_create,snippet.discussion_get,snippet.discussion_update_note.Parámetros obligatorios:
body (string),discussion_id (string),project_id (string|integer),snippet_id (integer)Token fine-grained:
Work Item: Createen proyecto
Create Snippet Discussionsnippet.discussion_createCreate a new discussion thread on a project snippet with an initial note. Returns: the created thread with its first note. See also:
snippet.discussion_add_note,snippet.discussion_list,snippet.note_create.Parámetros obligatorios:
body (string),project_id (string|integer),snippet_id (integer)Token fine-grained:
Work Item: Createen proyecto
Delete Snippet Discussion Notedestructivasnippet.discussion_delete_noteDelete a note from a snippet discussion thread (destructive). Returns: a deletion confirmation message. See also:
snippet.discussion_update_note,snippet.discussion_get,snippet.discussion_list.Parámetros obligatorios:
discussion_id (string),note_id (integer),project_id (string|integer),snippet_id (integer)Token fine-grained:
Work Item: Deleteen proyecto
Get Snippet Discussionsolo lecturasnippet.discussion_getGet a single snippet discussion thread by its discussion id. Returns: the thread with every note (author, body, system flag, resolvable/resolved state). See also:
snippet.discussion_list,snippet.discussion_add_note,snippet.project_get.Parámetros obligatorios:
discussion_id (string),project_id (string|integer),snippet_id (integer)Token fine-grained:
Work Item: Readen proyecto
List Snippet Discussionssolo lecturasnippet.discussion_listList discussion threads on a project snippet with ordering and keyset pagination. Returns: discussion threads with their notes (author, body, system flag, resolvable state) and pagination metadata. See also:
snippet.discussion_get,snippet.discussion_create,snippet.project_get,snippet.note_list.Parámetros obligatorios:
project_id (string|integer),snippet_id (integer)Token fine-grained:
Work Item: Readen proyecto
Update Snippet Discussion Notesnippet.discussion_update_noteUpdate the body of a note in a snippet discussion thread. Returns: the updated note. See also:
snippet.discussion_add_note,snippet.discussion_delete_note,snippet.discussion_get.Parámetros obligatorios:
body (string),discussion_id (string),note_id (integer),project_id (string|integer),snippet_id (integer)Token fine-grained:
Work Item: Updateen proyecto
Snippet Emoji Createsnippet.emoji_snippet_createAdd an emoji reaction to a project snippet. Returns: the created award with its emoji name, awarding user object, timestamps, and awardable id/type. See also:
snippet.emoji_snippet_list,snippet.emoji_snippet_delete.Parámetros obligatorios:
name (string),project_id (string|integer),snippet_id (integer)Token fine-grained:
Work Item: Createen proyecto
Snippet Emoji Deletedestructivasnippet.emoji_snippet_deleteRemove an emoji reaction from a project snippet by award id. Returns: a success confirmation naming the award emoji. See also:
snippet.emoji_snippet_list,snippet.emoji_snippet_get.Parámetros obligatorios:
award_id (integer),project_id (string|integer),snippet_id (integer)Token fine-grained:
Work Item: Deleteen proyecto
Snippet Emoji Getsolo lecturasnippet.emoji_snippet_getGet a single emoji reaction on a project snippet by award id. Returns: the award with its emoji name, awarding user object, timestamps, and awardable id/type. See also:
snippet.emoji_snippet_list,snippet.emoji_snippet_delete.Parámetros obligatorios:
award_id (integer),project_id (string|integer),snippet_id (integer)Token fine-grained:
Work Item: Readen proyecto
Snippet Emoji Listsolo lecturasnippet.emoji_snippet_listList all emoji reactions on a project snippet. Returns: each award with its emoji name, the awarding user object, awardable id/type, and pagination metadata. See also:
snippet.emoji_snippet_get,snippet.emoji_snippet_create,snippet.project_get.Parámetros obligatorios:
project_id (string|integer),snippet_id (integer)Token fine-grained:
Work Item: Readen proyecto
Snippet Note Emoji Createsnippet.emoji_snippet_note_createAdd an emoji reaction to a project snippet note. Returns: the created award with its emoji name, awarding user object, timestamps, and awardable id/type. See also:
snippet.emoji_snippet_note_list,snippet.emoji_snippet_note_delete.Parámetros obligatorios:
name (string),note_id (integer),project_id (string|integer),snippet_id (integer)Token fine-grained:
Work Item: Createen proyecto
Snippet Note Emoji Deletedestructivasnippet.emoji_snippet_note_deleteRemove an emoji reaction from a project snippet note by award id. Returns: a success confirmation naming the award emoji. See also:
snippet.emoji_snippet_note_list,snippet.emoji_snippet_note_get.Parámetros obligatorios:
award_id (integer),note_id (integer),project_id (string|integer),snippet_id (integer)Token fine-grained:
Work Item: Deleteen proyecto
Snippet Note Emoji Getsolo lecturasnippet.emoji_snippet_note_getGet a single emoji reaction on a project snippet note by award id. Returns: the award with its emoji name, awarding user object, timestamps, and awardable id/type. See also:
snippet.emoji_snippet_note_list,snippet.emoji_snippet_note_delete.Parámetros obligatorios:
award_id (integer),note_id (integer),project_id (string|integer),snippet_id (integer)Token fine-grained:
Work Item: Readen proyecto
Snippet Note Emoji Listsolo lecturasnippet.emoji_snippet_note_listList all emoji reactions on a project snippet note (comment). Returns: each award with its emoji name, the awarding user object, awardable id/type, and pagination metadata. See also:
snippet.emoji_snippet_note_get,snippet.emoji_snippet_note_create,snippet.note_get.Parámetros obligatorios:
note_id (integer),project_id (string|integer),snippet_id (integer)Token fine-grained:
Work Item: Readen proyecto
Snippet Exploresolo lecturasnippet.exploreList public snippets across the instance. Returns: public snippets with author, visibility, and pagination metadata. See also:
snippet.list,snippet.get.Parámetros obligatorios: Sin parámetros obligatorios
Token fine-grained:
Snippet: Readen usuario
Snippet File Contentsolo lecturasnippet.file_contentRead one file from a multi-file personal snippet at a ref. Returns: the snippet ID, ref, file name, and raw content. See also:
snippet.content,snippet.get.Parámetros obligatorios:
file_name (string),ref (string),snippet_id (integer)Token fine-grained:
Snippet: Readen usuario
Snippet Getsolo lecturasnippet.getGet a single personal snippet by ID. Returns: snippet metadata, visibility, author, files, and web URL. See also:
snippet.list,snippet.content,snippet.update,snippet.delete.Parámetros obligatorios:
snippet_id (integer)Token fine-grained:
Snippet: Readen usuario
Snippet Listsolo lecturasnippet.listList snippets owned by the authenticated user. Returns: snippets with title, visibility, author, files, and pagination metadata. See also:
snippet.get,snippet.create,snippet.explore.Parámetros obligatorios: Sin parámetros obligatorios
Token fine-grained:
Snippet: Readen usuario
Snippet List Allsolo lecturasnippet.list_allList all snippets on the instance (admin). Returns: snippets with author, visibility, repository storage, and pagination metadata. See also:
snippet.list,snippet.explore,snippet.get.Parámetros obligatorios: Sin parámetros obligatorios
Token fine-grained:
Snippet: Readen usuario
Snippet Note Createsnippet.note_createAdd a comment (note) to a project snippet. Returns: the created note with id, author, body, and timestamps. See also:
snippet.note_list,snippet.note_get,snippet.project_get.Parámetros obligatorios:
body (string),project_id (string|integer),snippet_id (integer)Token fine-grained:
Work Item: Createen proyecto
Snippet Note Deletedestructivasnippet.note_deleteDelete a snippet note permanently. Returns: a success confirmation naming the note, snippet, and project. See also:
snippet.note_get,snippet.note_list.Parámetros obligatorios:
note_id (integer),project_id (string|integer),snippet_id (integer)Token fine-grained:
Work Item: Deleteen proyecto
Snippet Note Getsolo lecturasnippet.note_getGet a single snippet note by its ID. Returns: the note with author, body, timestamps, and position. See also:
snippet.note_list,snippet.note_update,snippet.note_delete.Parámetros obligatorios:
note_id (integer),project_id (string|integer),snippet_id (integer)Token fine-grained:
Work Item: Readen proyecto
Snippet Note Listsolo lecturasnippet.note_listList all notes (comments) on a project snippet. Returns: notes with author, body, system flag, and pagination metadata. See also:
snippet.note_get,snippet.note_create,snippet.project_get.Parámetros obligatorios:
project_id (string|integer),snippet_id (integer)Token fine-grained:
Work Item: Readen proyecto
Snippet Note Updatesnippet.note_updateUpdate a snippet note's body. Returns: the updated note with new body and updated_at timestamp. See also:
snippet.note_get,snippet.note_list,snippet.note_delete.Parámetros obligatorios:
body (string),note_id (integer),project_id (string|integer),snippet_id (integer)Token fine-grained:
Work Item: Updateen proyecto
Project Snippet Contentsolo lecturasnippet.project_contentRead a project snippet's raw content. Returns: the snippet ID and raw text content. See also:
snippet.project_get,snippet.project_list.Parámetros obligatorios:
project_id (string|integer),snippet_id (integer)Token fine-grained:
Snippet: Readen proyecto
Project Snippet Createsnippet.project_createCreate a project snippet. Returns: the created snippet with ID, visibility, author, files, and web URL. See also:
snippet.project_get,snippet.project_update,snippet.project_list.Parámetros obligatorios:
project_id (string),title (string)Al menos uno de:
file_name (string)+content (string)ofiles (array)Token fine-grained:
Snippet: Createen proyecto
Project Snippet Deletedestructivasnippet.project_deleteDelete a project snippet permanently. Returns: a success confirmation. See also:
snippet.project_get,snippet.project_list.Parámetros obligatorios:
project_id (string|integer),snippet_id (integer)Token fine-grained:
Snippet: Deleteen proyecto
Project Snippet Getsolo lecturasnippet.project_getGet a single project snippet. Returns: snippet metadata, visibility, author, files, and web URL. See also:
snippet.project_list,snippet.project_content,snippet.project_update,snippet.project_delete.Parámetros obligatorios:
project_id (string|integer),snippet_id (integer)Token fine-grained:
Snippet: Readen proyecto
Project Snippet Listsolo lecturasnippet.project_listList a project's snippets. Returns: snippets with title, visibility, author, files, and pagination metadata. See also:
snippet.project_get,snippet.project_create,snippet.list.Parámetros obligatorios:
project_id (string|integer)Token fine-grained:
Snippet: Readen proyecto
Project Snippet Updatesnippet.project_updateUpdate a project snippet. Returns: the updated snippet with metadata, files, and web URL. See also:
snippet.project_get,snippet.project_delete,snippet.project_list.Parámetros obligatorios:
project_id (string|integer),snippet_id (integer)Token fine-grained:
Snippet: Updateen proyecto
Snippet Updatesnippet.updateUpdate a personal snippet. Returns: the updated snippet with metadata, files, and web URL. See also:
snippet.get,snippet.delete,snippet.list.Parámetros obligatorios:
snippet_id (integer)Token fine-grained:
Snippet: Updateen usuario