import{r as n,p as c,q as p,w as t,z as s,t as l,R as e}from"./vendor.8ed37afc.js";const d={class:"markdown-body"},i={class:"two-up"},u={class:"left"},_=e("Presets hold the preferences of individual users of the platform. This allows Directus to show and maintain custom item listings and bookmarks for users of the app. "),m=e("Learn more about Presets"),g=e("."),f=s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#the-preset-object"},"The Preset Object")]),s("li",null,[s("a",{href:"#list-presets"},"List Presets")]),s("li",null,[s("a",{href:"#retrieve-a-preset"},"Retrieve a preset")]),s("li",null,[s("a",{href:"#create-a-preset"},"Create a Preset")]),s("li",null,[s("a",{href:"#create-multiple-presets"},"Create Multiple Presets")]),s("li",null,[s("a",{href:"#update-a-preset"},"Update a Preset")]),s("li",null,[s("a",{href:"#update-multiple-presets"},"Update Multiple Presets")]),s("li",null,[s("a",{href:"#delete-a-preset"},"Delete a Preset")]),s("li",null,[s("a",{href:"#delete-multiple-presets"},"Delete Multiple Presets")])])])])],-1),j=s("hr",null,null,-1),y=s("h2",{id:"the-preset-object"},[e("The Preset Object "),s("a",{class:"header-anchor",href:"#the-preset-object"},"#")],-1),b={class:"two-up"},q={class:"left"},x={class:"definitions"},P=s("p",null,[s("code",null,"id"),e(),s("strong",null,"uuid"),s("br"),e(" Primary key of the preset.")],-1),v=s("p",null,[s("code",null,"bookmark"),e(),s("strong",null,"string"),s("br"),e(" The title of the bookmark. If this value is "),s("code",null,"null"),e(", it\u2019s considered a preset instead of a bookmark.")],-1),T=s("code",null,"user",-1),E=e(),k=s("strong",null,"many-to-one",-1),w=s("br",null,null,-1),R=e(" User this preset applies to. Many-to-one to "),S=e("users"),D=e("."),A=s("code",null,"role",-1),L=e(),C=s("strong",null,"many-to-one",-1),Q=s("br",null,null,-1),I=e(" Role this preset applies to. Many-to-one to "),M=e("users"),O=e("."),G=s("p",null,[s("code",null,"collection"),e(),s("strong",null,"string"),s("br"),e(" Collection this preset applies to.")],-1),B=s("p",null,[s("code",null,"search"),e(),s("strong",null,"string"),s("br"),e(" The search query used in the preset.")],-1),U=s("p",null,[s("code",null,"filters"),e(),s("strong",null,"array"),s("br"),e(" The filters used in the preset.")],-1),H=s("p",null,[s("code",null,"layout"),e(),s("strong",null,"string"),s("br"),e(" The layout used in this preset.")],-1),N=s("p",null,[s("code",null,"layout_query"),e(),s("strong",null,"object"),s("br"),e(" The item query used by the layout. This structure is based on the used layout.")],-1),V=s("p",null,[s("code",null,"layout_options"),e(),s("strong",null,"object"),s("br"),e(" The options used by the layout. This structure is based on the used layout.")],-1),W=s("div",{class:"right"},[s("pre",null,[s("code",{class:"language-json"},[e(`{
	`),s("span",{class:"hljs-attr"},'"id"'),e(": "),s("span",{class:"hljs-number"},"39"),e(`,
	`),s("span",{class:"hljs-attr"},'"bookmark"'),e(": "),s("span",{class:"hljs-literal"},"null"),e(`,
	`),s("span",{class:"hljs-attr"},'"user"'),e(": "),s("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),e(`,
	`),s("span",{class:"hljs-attr"},'"role"'),e(": "),s("span",{class:"hljs-literal"},"null"),e(`,
	`),s("span",{class:"hljs-attr"},'"collection"'),e(": "),s("span",{class:"hljs-string"},'"directus_activity"'),e(`,
	`),s("span",{class:"hljs-attr"},'"search"'),e(": "),s("span",{class:"hljs-literal"},"null"),e(`,
	`),s("span",{class:"hljs-attr"},'"filters"'),e(`: [],
	`),s("span",{class:"hljs-attr"},'"layout"'),e(": "),s("span",{class:"hljs-string"},'"tabular"'),e(`,
	`),s("span",{class:"hljs-attr"},'"layout_query"'),e(`: {
		`),s("span",{class:"hljs-attr"},'"tabular"'),e(`: {
			`),s("span",{class:"hljs-attr"},'"sort"'),e(": "),s("span",{class:"hljs-string"},'"-timestamp"'),e(`,
			`),s("span",{class:"hljs-attr"},'"fields"'),e(": ["),s("span",{class:"hljs-string"},'"action"'),e(", "),s("span",{class:"hljs-string"},'"collection"'),e(", "),s("span",{class:"hljs-string"},'"timestamp"'),e(", "),s("span",{class:"hljs-string"},'"user"'),e(`],
			`),s("span",{class:"hljs-attr"},'"page"'),e(": "),s("span",{class:"hljs-number"},"1"),e(`
		}
	},
	`),s("span",{class:"hljs-attr"},'"layout_options"'),e(`: {
		`),s("span",{class:"hljs-attr"},'"tabular"'),e(`: {
			`),s("span",{class:"hljs-attr"},'"widths"'),e(`: {
				`),s("span",{class:"hljs-attr"},'"action"'),e(": "),s("span",{class:"hljs-number"},"100"),e(`,
				`),s("span",{class:"hljs-attr"},'"collection"'),e(": "),s("span",{class:"hljs-number"},"210"),e(`,
				`),s("span",{class:"hljs-attr"},'"timestamp"'),e(": "),s("span",{class:"hljs-number"},"240"),e(`,
				`),s("span",{class:"hljs-attr"},'"user"'),e(": "),s("span",{class:"hljs-number"},"240"),e(`
			}
		}
	}
}
`)])])],-1),z=s("hr",null,null,-1),F=s("h2",{id:"list-presets"},[e("List Presets "),s("a",{class:"header-anchor",href:"#list-presets"},"#")],-1),J=s("p",null,"List all presets that exist in Directus.",-1),K={class:"two-up"},X={class:"left"},Y=s("div",{class:"tip hint"},[s("div",{class:"hint-title"},"Permissions"),s("p",null,"The data returned in this endpoint will be filtered based on the user\u2019s permissions. For example, presets for a role other than the current user\u2019s role won\u2019t be returned.")],-1),Z=s("h3",{id:"query-parameters"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters"},"#")],-1),$=e("Supports all "),ss=e("global query parameters"),es=e("."),ts=s("h3",{id:"returns"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns"},"#")],-1),as=e("An array of up to "),ls=e("limit"),rs=e(),ns=s("a",{href:"#the-preset-object"},"preset objects",-1),os=e(". If no items are available, data will be an empty array."),hs={class:"right"},cs=s("h3",{id:"rest-api"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api"},"#")],-1),ps=s("pre",null,[s("code",null,`GET /presets
SEARCH /presets
`)],-1),ds=e("Learn more about SEARCH ->"),is=s("h3",{id:"graphql"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql"},"#")],-1),us=s("pre",null,[s("code",null,`POST /graphql/system
`)],-1),_s=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
	presets: [directus_presets]
}
`)])],-1),ms=s("h5",{id:"example"},[e("Example "),s("a",{class:"header-anchor",href:"#example"},"#")],-1),gs=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),e(` {
	presets {
		id
		user
	}
}
`)])],-1),fs=s("hr",null,null,-1),js=s("h2",{id:"retrieve-a-preset"},[e("Retrieve a preset "),s("a",{class:"header-anchor",href:"#retrieve-a-preset"},"#")],-1),ys=s("p",null,"List an existing preset by primary key.",-1),bs={class:"two-up"},qs={class:"left"},xs=s("h3",{id:"query-parameters-2"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-2"},"#")],-1),Ps=e("Supports all "),vs=e("global query parameters"),Ts=e("."),Es=s("h3",{id:"returns-2"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-2"},"#")],-1),ks=s("p",null,[e("Returns the requested "),s("a",{href:"#the-preset-object"},"preset object"),e(".")],-1),ws=s("div",{class:"right"},[s("h3",{id:"rest-api-2"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-2"},"#")]),s("pre",null,[s("code",null,`GET /presets/:id
`)]),s("h5",{id:"example-2"},[e("Example "),s("a",{class:"header-anchor",href:"#example-2"},"#")]),s("pre",null,[s("code",null,`GET /presets/42
`)]),s("h3",{id:"graphql-2"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-2"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
	presets_by_id(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!): directus_presets
}
`)])]),s("h5",{id:"example-3"},[e("Example "),s("a",{class:"header-anchor",href:"#example-3"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),e(` {
	presets_by_id(id: `),s("span",{class:"hljs-number"},"42"),e(`) {
		id
		user
	}
}
`)])])],-1),Rs=s("hr",null,null,-1),Ss=s("h2",{id:"create-a-preset"},[e("Create a Preset "),s("a",{class:"header-anchor",href:"#create-a-preset"},"#")],-1),Ds=s("p",null,"Create a new preset.",-1),As={class:"two-up"},Ls={class:"left"},Cs=s("h3",{id:"query-parameters-3"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-3"},"#")],-1),Qs=e("Supports all "),Is=e("global query parameters"),Ms=e("."),Os=s("h3",{id:"request-body"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body"},"#")],-1),Gs=s("p",null,[e("A partial "),s("a",{href:"#the-preset-object"},"preset object"),e(".")],-1),Bs=s("h3",{id:"returns-3"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-3"},"#")],-1),Us=s("p",null,[e("Returns the "),s("a",{href:"#the-preset-object"},"preset object"),e(" for the created preset.")],-1),Hs=s("div",{class:"right"},[s("h3",{id:"rest-api-3"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-3"},"#")]),s("pre",null,[s("code",null,`POST /presets
`)]),s("h5",{id:"example-4"},[e("Example "),s("a",{class:"header-anchor",href:"#example-4"},"#")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// POST /presets"),e(`

{
	`),s("span",{class:"hljs-attr"},'"user"'),e(": "),s("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),e(`,
	`),s("span",{class:"hljs-attr"},'"layout"'),e(": "),s("span",{class:"hljs-string"},'"cards"'),e(`,
	`),s("span",{class:"hljs-attr"},'"search"'),e(": "),s("span",{class:"hljs-string"},'"Directus"'),e(`
}
`)])]),s("h3",{id:"graphql-3"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-3"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
	create_presets_item(data: create_directus_presets_input!): directus_presets
}
`)])]),s("h5",{id:"example-5"},[e("Example "),s("a",{class:"header-anchor",href:"#example-5"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
	create_presets_item(data: { user: `),s("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),e(", layout: "),s("span",{class:"hljs-string"},'"cards"'),e(", search: "),s("span",{class:"hljs-string"},'"Directus"'),e(` }) {
		id
		user
	}
}
`)])])],-1),Ns=s("hr",null,null,-1),Vs=s("h2",{id:"create-multiple-presets"},[e("Create Multiple Presets "),s("a",{class:"header-anchor",href:"#create-multiple-presets"},"#")],-1),Ws=s("p",null,"Create multiple new presets.",-1),zs={class:"two-up"},Fs={class:"left"},Js=s("h3",{id:"query-parameters-4"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-4"},"#")],-1),Ks=e("Supports all "),Xs=e("global query parameters"),Ys=e("."),Zs=s("h3",{id:"request-body-2"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body-2"},"#")],-1),$s=s("p",null,[e("An array of partial "),s("a",{href:"#the-preset-object"},"preset objects"),e(".")],-1),se=s("h3",{id:"returns-4"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-4"},"#")],-1),ee=s("p",null,[e("Returns the "),s("a",{href:"#the-preset-object"},"preset object"),e(" for the created preset.")],-1),te=s("div",{class:"right"},[s("h3",{id:"rest-api-4"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-4"},"#")]),s("pre",null,[s("code",null,`POST /presets
`)]),s("h5",{id:"example-6"},[e("Example "),s("a",{class:"header-anchor",href:"#example-6"},"#")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// POST /presets"),e(`

[
	{
		`),s("span",{class:"hljs-attr"},'"collection"'),e(": "),s("span",{class:"hljs-string"},'"directus_files"'),e(`,
		`),s("span",{class:"hljs-attr"},'"user"'),e(": "),s("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),e(`,
		`),s("span",{class:"hljs-attr"},'"layout"'),e(": "),s("span",{class:"hljs-string"},'"cards"'),e(`,
		`),s("span",{class:"hljs-attr"},'"search"'),e(": "),s("span",{class:"hljs-string"},'"Directus"'),e(`
	},
	{
		`),s("span",{class:"hljs-attr"},'"collection"'),e(": "),s("span",{class:"hljs-string"},'"articles"'),e(`,
		`),s("span",{class:"hljs-attr"},'"user"'),e(": "),s("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),e(`,
		`),s("span",{class:"hljs-attr"},'"layout"'),e(": "),s("span",{class:"hljs-string"},'"tabular"'),e(`
	}
]
`)])]),s("h3",{id:"graphql-4"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-4"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
	create_presets_items(data: [create_directus_presets_input!]!): [directus_presets]
}
`)])]),s("h5",{id:"example-7"},[e("Example "),s("a",{class:"header-anchor",href:"#example-7"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
	create_presets_items(
		data: [
			{
				collection: `),s("span",{class:"hljs-string"},'"directus_files"'),e(`
				user: `),s("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),e(`
				layout: `),s("span",{class:"hljs-string"},'"cards"'),e(`
				search: `),s("span",{class:"hljs-string"},'"Directus"'),e(`
			}
			{ collection: `),s("span",{class:"hljs-string"},'"articles"'),e(", user: "),s("span",{class:"hljs-string"},'"410b5772-e63f-4ae6-9ea2-39c3a31bd6ca"'),e(", layout: "),s("span",{class:"hljs-string"},'"tabular"'),e(` }
		]
	) {
		id
		user
	}
}
`)])])],-1),ae=s("hr",null,null,-1),le=s("h2",{id:"update-a-preset"},[e("Update a Preset "),s("a",{class:"header-anchor",href:"#update-a-preset"},"#")],-1),re=s("p",null,"Update an existing preset.",-1),ne={class:"two-up"},oe={class:"left"},he=s("h3",{id:"query-parameters-5"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-5"},"#")],-1),ce=e("Supports all "),pe=e("global query parameters"),de=e("."),ie=s("h3",{id:"request-body-3"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body-3"},"#")],-1),ue=s("p",null,[e("A partial "),s("a",{href:"#the-preset-object"},"preset object"),e(".")],-1),_e=s("h3",{id:"returns-5"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-5"},"#")],-1),me=s("p",null,[e("Returns the "),s("a",{href:"#the-preset-object"},"preset object"),e(" for the updated preset.")],-1),ge=s("div",{class:"right"},[s("h3",{id:"rest-api-5"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-5"},"#")]),s("pre",null,[s("code",null,`PATCH /presets/:id
`)]),s("h5",{id:"example-8"},[e("Example "),s("a",{class:"header-anchor",href:"#example-8"},"#")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// PATCH /presets/34"),e(`

{
	`),s("span",{class:"hljs-attr"},'"layout"'),e(": "),s("span",{class:"hljs-string"},'"tabular"'),e(`
}
`)])]),s("h3",{id:"graphql-5"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-5"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
	update_presets_item(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!, data: update_directus_presets_input): directus_presets
}
`)])]),s("h5",{id:"example-9"},[e("Example "),s("a",{class:"header-anchor",href:"#example-9"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
	update_presets_item(id: `),s("span",{class:"hljs-number"},"32"),e(", data: { layout: "),s("span",{class:"hljs-string"},'"tabular"'),e(` }) {
		id
		user
	}
}
`)])])],-1),fe=s("hr",null,null,-1),je=s("h2",{id:"update-multiple-presets"},[e("Update Multiple Presets "),s("a",{class:"header-anchor",href:"#update-multiple-presets"},"#")],-1),ye=s("p",null,"Update multiple existing presets.",-1),be={class:"two-up"},qe={class:"left"},xe=s("h3",{id:"query-parameters-6"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-6"},"#")],-1),Pe=e("Supports all "),ve=e("global query parameters"),Te=e("."),Ee=s("h3",{id:"request-body-4"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body-4"},"#")],-1),ke=s("div",{class:"definitions"},[s("p",null,[s("code",null,"keys"),e(),s("strong",null,"Required"),s("br"),e(" Array of primary keys of the presets you\u2019d like to update.")]),s("p",null,[s("code",null,"data"),e(),s("strong",null,"Required"),s("br"),e(" Any of "),s("a",{href:"#the-preset-object"},"the preset object"),e("\u2019s properties.")])],-1),we=s("h3",{id:"returns-6"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-6"},"#")],-1),Re=s("p",null,[e("Returns the "),s("a",{href:"#the-preset-object"},"preset objects"),e(" for the updated presets.")],-1),Se=s("div",{class:"right"},[s("h3",{id:"rest-api-6"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-6"},"#")]),s("pre",null,[s("code",null,`PATCH /presets
`)]),s("h5",{id:"example-10"},[e("Example "),s("a",{class:"header-anchor",href:"#example-10"},"#")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// PATCH /presets"),e(`

{
	`),s("span",{class:"hljs-attr"},'"keys"'),e(": ["),s("span",{class:"hljs-number"},"15"),e(", "),s("span",{class:"hljs-number"},"64"),e(`],
	`),s("span",{class:"hljs-attr"},'"data"'),e(`: {
		`),s("span",{class:"hljs-attr"},'"layout"'),e(": "),s("span",{class:"hljs-string"},'"tabular"'),e(`
	}
}
`)])]),s("h3",{id:"graphql-6"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-6"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
	update_presets_items(ids: `),s("span",{class:"hljs-literal"},"[ID"),e(`!]!, data: update_directus_presets_input): [directus_presets]
}
`)])]),s("h5",{id:"example-11"},[e("Example "),s("a",{class:"header-anchor",href:"#example-11"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
	update_presets_items(ids: [`),s("span",{class:"hljs-number"},"15"),e(", "),s("span",{class:"hljs-number"},"64"),e("], data: { layout: "),s("span",{class:"hljs-string"},'"tabular"'),e(` }) {
		id
		user
	}
}
`)])])],-1),De=s("hr",null,null,-1),Ae=s("h2",{id:"delete-a-preset"},[e("Delete a Preset "),s("a",{class:"header-anchor",href:"#delete-a-preset"},"#")],-1),Le=s("p",null,"Delete an existing preset.",-1),Ce=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"returns-7"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-7"},"#")]),s("p",null,"Empty body.")]),s("div",{class:"right"},[s("h3",{id:"rest-api-7"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-7"},"#")]),s("pre",null,[s("code",null,`DELETE /presets/:id
`)]),s("h5",{id:"example-12"},[e("Example "),s("a",{class:"header-anchor",href:"#example-12"},"#")]),s("pre",null,[s("code",null,`DELETE /presets/34
`)]),s("h3",{id:"graphql-7"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-7"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
	delete_presets_item(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!): delete_one
}
`)])]),s("h5",{id:"example-13"},[e("Example "),s("a",{class:"header-anchor",href:"#example-13"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
	delete_presets_item(id: `),s("span",{class:"hljs-number"},"32"),e(`) {
		id
	}
}
`)])])])],-1),Qe=s("hr",null,null,-1),Ie=s("h2",{id:"delete-multiple-presets"},[e("Delete Multiple Presets "),s("a",{class:"header-anchor",href:"#delete-multiple-presets"},"#")],-1),Me=s("p",null,"Delete multiple existing presets.",-1),Oe=s("div",{class:"two-up"},[s("div",{class:"left"},[s("h3",{id:"request-body-5"},[e("Request Body "),s("a",{class:"header-anchor",href:"#request-body-5"},"#")]),s("p",null,"An array of preset primary keys"),s("h3",{id:"returns-8"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-8"},"#")]),s("p",null,"Empty body.")]),s("div",{class:"right"},[s("h3",{id:"rest-api-8"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-8"},"#")]),s("pre",null,[s("code",null,`DELETE /presets
`)]),s("h5",{id:"example-14"},[e("Example "),s("a",{class:"header-anchor",href:"#example-14"},"#")]),s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// DELETE /presets"),e(`
[`),s("span",{class:"hljs-number"},"15"),e(", "),s("span",{class:"hljs-number"},"251"),e(", "),s("span",{class:"hljs-number"},"810"),e(`]
`)])]),s("h3",{id:"graphql-8"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-8"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
	delete_presets_items(ids: `),s("span",{class:"hljs-literal"},"[ID"),e(`!]!): delete_many
}
`)])]),s("h5",{id:"example-15"},[e("Example "),s("a",{class:"header-anchor",href:"#example-15"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
	delete_presets_items(ids: [`),s("span",{class:"hljs-number"},"15"),e(", "),s("span",{class:"hljs-number"},"251"),e(", "),s("span",{class:"hljs-number"},"810"),e(`]) {
		ids
	}
}
`)])])])],-1),Ne={setup(Ge,{expose:o}){const r={title:"Preset",modularExtension:!1,pageClass:"page-reference"};return o({frontmatter:r}),(Be,Ue)=>{const a=n("router-link"),h=n("DocsWrapper");return c(),p(h,{frontmatter:r},{default:t(()=>[s("div",d,[s("div",i,[s("div",u,[s("blockquote",null,[s("p",null,[_,l(a,{to:"/docs/getting-started/glossary/#presets"},{default:t(()=>[m]),_:1}),g])])]),f]),j,y,s("div",b,[s("div",q,[s("div",x,[P,v,s("p",null,[T,E,k,w,R,l(a,{to:"/docs/reference/system/users/"},{default:t(()=>[S]),_:1}),D]),s("p",null,[A,L,C,Q,I,l(a,{to:"/docs/reference/system/users/"},{default:t(()=>[M]),_:1}),O]),G,B,U,H,N,V])]),W]),z,F,J,s("div",K,[s("div",X,[Y,Z,s("p",null,[$,l(a,{to:"/docs/reference/query"},{default:t(()=>[ss]),_:1}),es]),ts,s("p",null,[as,l(a,{to:"/docs/reference/query/#limit"},{default:t(()=>[ls]),_:1}),rs,ns,os])]),s("div",hs,[cs,ps,s("p",null,[l(a,{to:"/docs/reference/introduction/#search-http-method"},{default:t(()=>[ds]),_:1})]),is,us,_s,ms,gs])]),fs,js,ys,s("div",bs,[s("div",qs,[xs,s("p",null,[Ps,l(a,{to:"/docs/reference/query"},{default:t(()=>[vs]),_:1}),Ts]),Es,ks]),ws]),Rs,Ss,Ds,s("div",As,[s("div",Ls,[Cs,s("p",null,[Qs,l(a,{to:"/docs/reference/query"},{default:t(()=>[Is]),_:1}),Ms]),Os,Gs,Bs,Us]),Hs]),Ns,Vs,Ws,s("div",zs,[s("div",Fs,[Js,s("p",null,[Ks,l(a,{to:"/docs/reference/query"},{default:t(()=>[Xs]),_:1}),Ys]),Zs,$s,se,ee]),te]),ae,le,re,s("div",ne,[s("div",oe,[he,s("p",null,[ce,l(a,{to:"/docs/reference/query"},{default:t(()=>[pe]),_:1}),de]),ie,ue,_e,me]),ge]),fe,je,ye,s("div",be,[s("div",qe,[xe,s("p",null,[Pe,l(a,{to:"/docs/reference/query"},{default:t(()=>[ve]),_:1}),Te]),Ee,ke,we,Re]),Se]),De,Ae,Le,Ce,Qe,Ie,Me,Oe])]),_:1})}}};export{Ne as default};
