update profile patch.md

Update profile

Management API · Your Profile

PATCH https://app.mk.io/api/v1/user/profile

This endpoint allows certain fields within the profile to be updated.

Requires authentication; no additional RBAC permissions required.

Authentication

Request body

Content type: application/json

Example request

curl -X PATCH "https://app.mk.io/api/v1/user/profile" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
  "spec": {
    "company": "string",
    "country": "string",
    "jobRole": "string",
    "name": "string",
    "phoneNumber": "string"
  }
}'

Responses

200 — OK

Example:

{
  "kind": "string",
  "metadata": {
    "id": "00000000-0000-0000-0000-000000000000"
  },
  "spec": {
    "activeOrganizationId": "string",
    "avatar": "string",
    "company": "string",
    "contactEmail": "string",
    "country": "string",
    "features": {
      "key": null
    },
    "isActive": true,
    "jobRole": "string",
    "loginEmail": "string",
    "name": "string",
    "phoneNumber": "string"
  }
}

400 — Bad Request

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

401 — Unauthorized

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

403 — Forbidden

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

404 — Not Found

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

429 — Too Many Requests

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}

500 — Internal Server Error

Example:

{
  "error": {
    "code": "string",
    "detail": "string",
    "extraDetail": {
      "key": null
    }
  },
  "ref": "string",
  "status": 0
}