PUT /api/pro/me
Name, location, languages, professions, credential countries, and the active switch. Professions and location change what the pool shows.
Surface: professional. Who may call: professional. Key: professional.update.
Example request
curl -X PUT https://caremcp.com/api/pro/me \
-H "Authorization: Bearer <session or access token>" \
-H "Content-Type: application/json" \
-d '{"languages":["sv","en"],"active":true}'
Example input
{
"languages": [
"sv",
"en"
],
"active": true
}
Input schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 2,
"maxLength": 100
},
"location": {
"type": "object",
"properties": {
"country": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"region": {
"type": "string",
"pattern": "^[A-Z0-9]{1,3}$"
}
},
"required": [
"country"
]
},
"languages": {
"minItems": 1,
"maxItems": 10,
"type": "array",
"items": {
"$ref": "#/$defs/__schema0"
}
},
"professions": {
"minItems": 1,
"maxItems": 5,
"type": "array",
"items": {
"$ref": "#/$defs/__schema1"
}
},
"licensedIn": {
"maxItems": 20,
"type": "array",
"items": {
"$ref": "#/$defs/__schema2"
}
},
"active": {
"type": "boolean"
}
},
"$defs": {
"__schema0": {
"type": "string",
"pattern": "^[a-z]{2}(-[A-Z]{2})?$"
},
"__schema1": {
"type": "string",
"minLength": 1
},
"__schema2": {
"type": "string",
"pattern": "^[A-Z]{2}$"
}
}
}
Output schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"email": {
"type": "string"
},
"name": {
"type": "string"
},
"location": {
"type": "object",
"properties": {
"country": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"region": {
"type": "string",
"pattern": "^[A-Z0-9]{1,3}$"
}
},
"required": [
"country"
],
"additionalProperties": false
},
"languages": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[a-z]{2}(-[A-Z]{2})?$"
}
},
"professions": {
"type": "array",
"items": {
"type": "string"
}
},
"licensedIn": {
"type": "array",
"items": {
"type": "string"
}
},
"active": {
"type": "boolean"
},
"approvedAt": {
"type": [
"string",
"null"
]
},
"employment": {
"type": "string",
"enum": [
"contractor",
"employee"
]
},
"createdAt": {
"type": "string"
}
},
"required": [
"id",
"email",
"name",
"location",
"languages",
"professions",
"licensedIn",
"active",
"approvedAt",
"employment",
"createdAt"
],
"additionalProperties": false
}