1. Profile
Treek-Public
  • Authentication
    • User login with email and password
      POST
  • Orders
    • Create Order
      POST
    • List Orders
      GET
    • Order Details
      GET
    • Update Order
      PUT
    • Cancel Order
      POST
    • Reset Order
      POST
    • Get Statuses
      GET
    • Verify Item
      POST
    • Verify Order
      POST
    • Order Price
      GET
  • Shipments
    • Create Shipment
      POST
    • Return Shipment
      POST
    • Print Invoice
      GET
  • Boxes
    • Create Box
      POST
    • Get Boxes
      GET
    • Box Details
      GET
    • Update Box
      PUT
  • Merchants
    • Merchants Details
      GET
  • Profile
    • User Details
      GET
    • Update User
      PUT
    • Change Password
      PUT
  • Utilities
    • Countries List
      GET
    • Cities List
      GET
    • Couriers List
      GET
  • Warehouses
    • Warehouses List
    • Create warehouse
    • warehouse Details
  • Price Calculator
    • Price Calculator
  • Packaging Type
    • Packaging Types List
    • Packaging Type Details
  • statistics
    • Statistics
  • Schemas
    • LoginRequest
    • CreateOrderRequest
    • UpdateOrderRequest
    • Price Calculator
    • VerifyItem
    • CreateWarehouseRequest
    • Shipment Package
    • Create Reverse Shipment
    • OrderPackages
    • OrderItem
    • Order
    • City
    • Country
    • User
    • OrderItem
    • CreateOrderItemRequest
    • CalculateRatesRequest
    • BoxDimensions
    • OrderShippingRate
    • RateCalculationParams
    • Warehouse
    • Box
    • CreateBoxRequest
    • UpdateBoxRequest
    • ValidationError
    • NotFoundError
    • UnauthorizedError
    • ForbiddenError
    • PaginationMeta
    • PaginationLinks
  1. Profile

Update User

PUT
https://app.gotreek.com/api/profile
Profile
Last modified:2025-12-22 11:57:39
Profile update endpoint for the authenticated user, updating personal, company, and bank information.
💡
Authentication
Bearer token authentication is required.
The profile is always resolved from the authenticated user context; no user ID can be passed or overridden in the request.
💡
Update behavior
Allows partial updates of personal data (first name, last name, phone, date of birth), company details (name, city, registration and tax numbers, main store URL), and bank details (bank name, account number, IBAN).

Request

Authorization
OAuth 2.0
Client Credentials
Add the parameter
Authorization
to Headers
,whose value is to concatenate the Token after the Bearer.
Example:
Authorization: Bearer ********************
Token URL: https://app.gotreek.com/api/auth/login
or
Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Profile updated successfully
Body

🟠401
🟠422
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://app.gotreek.com/api/profile' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
        "id": 33,
        "first_name": "test",
        "last_name": "treek",
        "full_name": "test",
        "email": "test@example.com",
        "phone": "+966533112592",
        "store_logo": null,
        "date_of_birth": "2024-12-30",
        "role": "merchant",
        "email_verified_at": "2025-03-04T19:51:12.000000Z",
        "created_at": "2025-03-04T19:51:12.000000Z",
        "updated_at": "2025-12-21T18:28:01.000000Z",
        "company_name": "مؤسسة ",
        "company_city": "Rabigh",
        "company_postal_code": "2334",
        "company_commercial_registration_number": "00000000000",
        "company_tax_number": "0000000000",
        "main_store_url": "https://test.com",
        "bank_name": "بنك الرياض",
        "account_number": "000000",
        "iban": "0000000000"
}'
Response Response Example
200 - Example 1
{
    "success": true,
    "message": "Profile updated successfully",
    "profile": {
        "id": 50,
        "first_name": "أحمد",
        "last_name": "محمد",
        "email": "ahmed.mohammed@example.com",
        "phone": "+966501234567"
    }
}
Modified at 2025-12-22 11:57:39
Previous
User Details
Next
Change Password
Built with