Update a Mail split
Replaces the name, filter, mailbox scope and sidebar position of a split owned by the signed-in reader. Requires a person signed in through Mail or the CLI.
PUT
Replaces the name, filter, mailbox scope and sidebar position of a split owned by the signed-in reader. Requires a person signed in through Mail or the CLI.
apiKeyheader
x-api-key<token>splitId*stringapplication/json- body
name*stringLength
1 <= length <= 100filter*||mailboxId*|nullposition*integerRange
-9007199254740991 <= value <= 9007199254740991Success
application/json- response
id*stringname*stringLength
1 <= length <= 100filter*||mailboxId*|nullposition*integerRange
-9007199254740991 <= value <= 9007199254740991import { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.mailboxes.updateSplit({
"splitId": "example",
"name": "example",
"filter": {
"kind": "query",
"query": "example"
},
"mailboxId": "example",
"position": -9007199254740991
});Example Response
{
"id": "string",
"name": "string",
"filter": {
"kind": "query",
"query": "string"
},
"mailboxId": "string",
"position": -9007199254740991
}