Magidoc

saveProjectSlices
Mutation

Create, update, and delete project slices in one call — this is a full-replace operation on the project's slice set. Entries with an id update that slice, entries without an id create a new slice, and any existing slice whose id is NOT in the submitted list is permanently deleted (a hard database delete, not recoverable with undoDeleteSlice). Always send the complete current set of slices you want to keep.

Each entry requires title and position (ordering within the project, starting at 1). Requires project update permission; an unknown or inaccessible projectId returns a not_found error. Returns the slice ids in the same order as the input, so callers can correlate created slices with their entries.

Arguments

#

projectId

Non-null

slices

Non-null

Response

#

Returns [Int ].

Example

#