upsert_signatures
Upsert (create and/or update) one or more signatures.
Input fields
signatures (
[SignatureImport!]!)
An array of SignatureImport objects to upsert. The limit is 1000 signatures.
user_sentera_id (
ID)
The ID of the user to whom these signatures belong. If not provided the currently logged in user is assumed.
Return fields
failed (
[UpsertError!]!)
Detailed error information for UpsertItems that failed to upsert.
succeeded (
[UpsertItem!]!)
UpsertItems that have been successfully upserted.
Examples
Upsert user signatures
Create or update a user's reporting signatures.
Try this example in GraphiQLmutation UpsertSignaturesExample {
upsert_signatures(
user_sentera_id: "694bart_US_8brhbkSentera_CV_deve_5af721424_210818_095654"
signatures: [
{
title: "My Signature",
body: "Lorem Ipsum"
},
{
body: "example body"
}
]
) {
succeeded {
sentera_id
... on Signature {
title
body
}
}
failed {
index
item {
sentera_id
... on Signature {
body
}
}
attributes {
attribute
key
details
message
}
}
}
}
{
"data": {
"upsert_signatures": {
"succeeded": [
{
"sentera_id": "jzt2lzz_SI_8brhbkSentera_CV_deve_a66dedf98_200410_121407",
"title": "My Signature",
"body": "Lorem Ipsum"
}
],
"failed": [
{
"index": 1,
"item": {
"sentera_id": "tdfrl78_SI_8brhbkSentera_CV_deve_a66dedf98_200410_121407",
"body": "example body"
},
"attributes": [
{
"attribute": "title",
"key": "presence",
"details": {
"value": null
},
"message": "cannot be blank."
}
]
}
]
}
}
}