Skip to content

updateOwnFlag

WRITE

One of the signed-in person's own acknowledgement flags, merged in one statement through `set_own_flag` (a dismissal a member's plain update never stored).

POST /api/v1/account/updateOwnFlag
curl -X POST '<your-host>/api/v1/account/updateOwnFlag' \
  -H 'Authorization: Bearer <api-key>' \
  -H 'Content-Type: application/json' \
  -d '{
    "flag": "academy",
    "value": true
  }'

Parameters

ParameterType
"academy""training:quotes""training:salesOrders""training:salesInvoices""training:jobs""training:suppliers""training:purchaseOrders""training:parts""training:inventory""training:quality"

Input schema

schema
{
  "type": "object",
  "properties": {
    "flag": {
      "type": "string",
      "enum": [
        "academy",
        "training:quotes",
        "training:salesOrders",
        "training:salesInvoices",
        "training:jobs",
        "training:suppliers",
        "training:purchaseOrders",
        "training:parts",
        "training:inventory",
        "training:quality"
      ]
    },
    "value": {
      "type": "boolean"
    }
  },
  "required": [
    "flag",
    "value"
  ]
}