Skip to main content
PUT
/
v1
/
escrow
/
category
/
edit
/
{categoryId}
Update category
curl --request PUT \
  --url https://staging.api.payluk.ng/v1/escrow/category/edit/{categoryId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'name=Consumer Electronics' \
  --form description=Updated \
  --form imageUrl='@example-file'
{
  "status": 200,
  "message": "Category updated successfully",
  "data": {
    "id": "665f1b2c9a1e4d0012ab3c30",
    "name": "Consumer Electronics"
  }
}

Authorizations

Authorization
string
header
required

Your secret key as a Bearer token. The key prefix selects the environment: sk_test_... (test) or sk_live_... (live).

Path Parameters

categoryId
string
required

The category's unique identifier.

Body

multipart/form-data
name
string
Example:

"Consumer Electronics"

description
string
Example:

"Updated"

imageUrl
file

Response

Category updated.

status
integer
Example:

200

message
string
Example:

"Category fetched successfully"

data
object