---
updatedAt: 2026-05-11T07:32:11.000Z
agentTools:
  projectIndex: https://docs.sequra.com/llms.txt
---

# Update a merchant user

Update a merchant user's name or store authorizations

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "instore-api",
    "version": "v1"
  },
  "servers": [
    {
      "url": "http://localhost:3009"
    },
    {
      "url": "https://instore-sandbox.sequrapi.com/"
    },
    {
      "url": "https://instore.sequrapi.com/"
    },
    {
      "url": "https://{defaultHost}",
      "variables": {
        "defaultHost": {
          "default": "www.example.com"
        }
      }
    }
  ],
  "paths": {
    "/api/public/v1/merchants/{merchant_reference}/users/{id}": {
      "patch": {
        "summary": "Update a merchant user",
        "parameters": [
          {
            "name": "merchant_reference",
            "in": "path",
            "required": true,
            "description": "Merchant's reference",
            "schema": {
              "type": "string"
            },
            "examples": {
              "successful": {
                "value": "merchant_1"
              }
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "User ID",
            "schema": {
              "type": "integer"
            },
            "examples": {
              "successful": {
                "value": 1228
              },
              "not found": {
                "value": 0
              }
            }
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            },
            "examples": {
              "successful": {
                "value": "Basic YXBpdXNlcjE6YXBpdXNlcjE="
              }
            }
          }
        ],
        "tags": [
          "Merchant Users"
        ],
        "description": "Update a merchant user's name or store authorizations",
        "operationId": "publicUpdateUser",
        "security": [
          {
            "basic_auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "successful",
            "content": {
              "application/json": {
                "examples": {
                  "successful": {
                    "value": {
                      "id": 1228,
                      "name": "Updated Name",
                      "email": "user@example.com",
                      "store_authorizations": []
                    }
                  }
                },
                "schema": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "name",
                    "email",
                    "store_authorizations"
                  ],
                  "properties": {
                    "id": {
                      "type": "integer"
                    },
                    "name": {
                      "type": "string"
                    },
                    "email": {
                      "type": "string"
                    },
                    "store_authorizations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "reference",
                          "name",
                          "active"
                        ],
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "reference": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "active": {
                            "type": "boolean"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "not found",
            "content": {
              "application/json": {
                "examples": {
                  "not found": {
                    "value": {
                      "errors": [
                        {
                          "code": "not_found",
                          "title": "Resource not found"
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/user_update"
              },
              "examples": {
                "successful": {
                  "summary": "successful",
                  "value": {
                    "name": "Updated Name"
                  }
                }
              }
            }
          },
          "description": "Updated user data"
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "basic_auth": {
        "type": "http",
        "scheme": "basic"
      }
    },
    "schemas": {
      "user_update": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "store_references": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```