SellersUpdate a seller

Update a seller

Updates a seller account. Requires an administrator JWT.

curl -X PUT "http://localhost:8080/api/sellers/123" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -d '{
  "email": "user@example.com",
  "password": "example_string",
  "name": "John Doe",
  "role": "ADMIN"
}'
{
  "id": 123,
  "email": "user@example.com",
  "name": "John Doe",
  "role": "ADMIN"
}
PUT
/api/sellers/{id}
PUT
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (JWT)
Bearer Tokenstring
Required

JWT access token, or refresh token for the token refresh endpoint.

JWT access token, or refresh token for the token refresh endpoint.
path
idinteger
Required

Seller identifier.

Format: int64
Content-Typestring
Required

The media type of the request body

Options: application/json
emailstring

Updated seller email address.

Format: email
passwordstring

Updated seller password.

Format: password
namestring

Updated seller display name.

rolestring

Updated seller role.

Options: ADMIN, SELLER
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). JWT access token, or refresh token for the token refresh endpoint.

Path Parameters

idinteger
Required

Seller identifier.

Body

application/json
emailstring

Updated seller email address.

passwordstring

Updated seller password.

namestring

Updated seller display name.

rolestring

Updated seller role.

Allowed values:ADMINSELLER

Responses

idinteger
Required

Seller identifier.

emailstring
Required

Seller email address.

namestring
Required

Seller display name.

rolestring
Required

Seller role.

Allowed values:ADMINSELLER