PUT
/
auth
/
roles
/
{id}
curl --request PUT \
  --url https://services.commercengine.dev/api/v1/x2yh61zw4k/admin/auth/roles/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "seller_id": "<string>"
}'
{
  "message": "<string>",
  "success": true,
  "content": {
    "role": {
      "id": "<string>",
      "name": "<string>",
      "seller_id": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "modified_at": "2023-11-07T05:31:56Z"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

role ulid

Body

application/json
name
string
seller_id
string

Response

200 - application/json
OK
message
string
success
boolean
content
object