# Update profile Deprecated

Put `https://app.mk.io/api/profile/`

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

Requires authentication; no additional RBAC permissions required.

## Authentication

Authorization Bearer

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

## Request

This endpoint expects an object.

### `spec` object [UserProfileSpec](https://docs.mediakind.com/api-reference/management-api/schemas/userprofilespec) Required

Specification.

- **company**: string or null Required (0-1024 characters)
- **country**: string Required (0-1024 characters)
- **jobrole**: string or null Required (0-1024 characters)
- **name**: string Required (1-1024 characters)
- **phonenumber**: string Required (0-1024 characters)

## Response

**200 OK**

`metadata` object [UserMetadata](https://docs.mediakind.com/api-reference/management-api/schemas/usermetadata) Required

Metadata.

- **id**: string Required (format: uuid) The unique identifier of the user.
- **spec** object [UserProfileSpec](https://docs.mediakind.com/api-reference/management-api/schemas/userprofilespec) Required

Specification.

- **avatar**: string Required (<=200 characters)
- **company**: string or null Required (0-1024 characters)
- **contact_email**: string Required (1-1024 characters)
- **country**: string Required (0-1024 characters)
- **customer_id**: string Required
- **customers**: map from strings to string Required
    - **[any key]**: string
- **is_active**: boolean Required
- **is_admin**: boolean Required
- **jobrole**: string or null Required (0-1024 characters)
- **name**: string Required (1-1024 characters)
- **phonenumber**: string Required (0-1024 characters)
- **signup_problem**: string or null Required

## Errors

**400 Bad Request**

`error` object [ErrorDetail](https://docs.mediakind.com/api-reference/management-api/schemas/errordetail) Required

Pertinent information about the error

- **code**: string Required
- **detail**: string Required
- **extraDetail**: map from strings to any Optional

- **[any key]**: any

- **ref**: string Required
- **status**: integer Required

**401 Unauthorized**

`error` object [ErrorDetail](https://docs.mediakind.com/api-reference/management-api/schemas/errordetail) Required

Pertinent information about the error

- Same properties as 400

**403 Forbidden**

`error` object [ErrorDetail](https://docs.mediakind.com/api-reference/management-api/schemas/errordetail) Required

Pertinent information about the error

- Same properties as 400

**404 Not Found**

`error` object [ErrorDetail](https://docs.mediakind.com/api-reference/management-api/schemas/errordetail) Required

Pertinent information about the error

- Same properties as 400

**429 Too Many Requests**

`error` object [ErrorDetail](https://docs.mediakind.com/api-reference/management-api/schemas/errordetail) Required

Pertinent information about the error

- Same properties as 400

**500 Internal Server Error**

`error` object [ErrorDetail](https://docs.mediakind.com/api-reference/management-api/schemas/errordetail) Required

Pertinent information about the error

- Same properties as 400
