Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceMutations

Identity__update Vendor

Updates an existing vendor/supplier. Optionally update the password for vendor portal access. Requires a signed-in staff user. Needs the `identity__Vendor` `update` permission. Send the `x-tenant` header (the gateway sets it from your API key).

MUTATIONidentity__updateVendor(body: UpdateVendorInput!, where: CommonFindDocumentDto!): Boolean!

Updates an existing vendor/supplier. Optionally update the password for vendor portal access. Requires a signed-in staff user. Needs the identity__Vendor update permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

body*
where*

Returns

identity__updateVendor*Boolean!
Example Request
mutation Identity__updateVendor($body: UpdateVendorInput!, $where: CommonFindDocumentDto!) {  identity__updateVendor(body: $body, where: $where)}
Variables
{  "body": {    "address": {      "caption": "string",      "lat": 10.5    },    "description": "string"  },  "where": {    "and": [      {        "and": [          {            "and": [              {                "and": [                  {}                ],                "key": "string"              }            ],            "key": "string"          }        ],        "key": "string"      }    ],    "key": "string"  }}
Example Response
{  "data": {    "identity__updateVendor": true  }}