curl --request PUT \
--url https://api.ctrl-hub.com/v3/users/{user_id} \
--header 'Content-Type: application/vnd.api+json' \
--header 'X-Session-Token: <api-key>' \
--data '
{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"attributes": {
"profile": {
"address": {
"area": "Central London",
"country_code": "GB",
"county": "Greater London",
"name": "The Shard",
"number": "32A",
"postcode": "SE1 9SG",
"street": "London Bridge Street",
"town": "London",
"what3words": "spark.dizzy.ramp"
},
"contact": {
"landline": "020 3728 5000",
"mobile": "07700 900456"
},
"personal": {
"dob": "1985-06-15T00:00:00.000Z",
"first_name": "Charlotte",
"last_name": "Thompson"
},
"settings": {
"preferred_language": "en-GB",
"timezone": "Europe/London"
},
"work": {
"cscs": "GBCSCS789",
"eusr": "GBEUSR012",
"occupation": "Senior Software Engineer",
"start_date": "2018-03-15T00:00:00.000Z"
}
}
}
}
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"attributes": {
"email": "[email protected]",
"identities": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform": "<string>",
"meta": {}
}
],
"profile": {
"work": {
"occupation": "<string>",
"cscs": "<string>",
"eusr": "<string>",
"start_date": "2023-12-25"
},
"personal": {
"first_name": "<string>",
"last_name": "<string>",
"dob": "2023-12-25",
"username": "<string>"
},
"contact": {
"mobile": "<string>",
"landline": "<string>"
},
"address": {
"number": "",
"street": "<string>",
"area": "<string>",
"town": "<string>",
"county": "<string>",
"postcode": "<string>",
"country_code": "<string>",
"what3words": "<string>"
},
"settings": {
"preferred_language": "en-GB",
"timezone": "<string>"
}
}
},
"meta": {
"grants": [
"<string>"
]
},
"relationships": {
"organisations": {
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
]
},
"teams": {
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
]
}
}
},
"jsonapi": {
"version": "<string>"
},
"included": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"attributes": {
"name": "<string>",
"slug": "<string>",
"sandbox": true,
"settings": {
"nomenclature": {
"governance": {
"schemes": [
{
"singular": "<string>",
"plural": "<string>",
"language": "<string>"
}
],
"work_orders": [
{
"singular": "<string>",
"plural": "<string>",
"language": "<string>"
}
],
"operations": [
{
"singular": "<string>",
"plural": "<string>",
"language": "<string>"
}
]
}
}
},
"description": "<string>"
},
"meta": {
"v3": true,
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"features": [
{
"name": "<string>",
"enabled": true,
"limit": 123
}
]
},
"relationships": {
"users": {
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
]
},
"service_accounts": {
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
]
},
"groups": {
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
]
},
"teams": {
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
]
}
}
}
]
}Update an existing user.
curl --request PUT \
--url https://api.ctrl-hub.com/v3/users/{user_id} \
--header 'Content-Type: application/vnd.api+json' \
--header 'X-Session-Token: <api-key>' \
--data '
{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"attributes": {
"profile": {
"address": {
"area": "Central London",
"country_code": "GB",
"county": "Greater London",
"name": "The Shard",
"number": "32A",
"postcode": "SE1 9SG",
"street": "London Bridge Street",
"town": "London",
"what3words": "spark.dizzy.ramp"
},
"contact": {
"landline": "020 3728 5000",
"mobile": "07700 900456"
},
"personal": {
"dob": "1985-06-15T00:00:00.000Z",
"first_name": "Charlotte",
"last_name": "Thompson"
},
"settings": {
"preferred_language": "en-GB",
"timezone": "Europe/London"
},
"work": {
"cscs": "GBCSCS789",
"eusr": "GBEUSR012",
"occupation": "Senior Software Engineer",
"start_date": "2018-03-15T00:00:00.000Z"
}
}
}
}
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"attributes": {
"email": "[email protected]",
"identities": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"platform": "<string>",
"meta": {}
}
],
"profile": {
"work": {
"occupation": "<string>",
"cscs": "<string>",
"eusr": "<string>",
"start_date": "2023-12-25"
},
"personal": {
"first_name": "<string>",
"last_name": "<string>",
"dob": "2023-12-25",
"username": "<string>"
},
"contact": {
"mobile": "<string>",
"landline": "<string>"
},
"address": {
"number": "",
"street": "<string>",
"area": "<string>",
"town": "<string>",
"county": "<string>",
"postcode": "<string>",
"country_code": "<string>",
"what3words": "<string>"
},
"settings": {
"preferred_language": "en-GB",
"timezone": "<string>"
}
}
},
"meta": {
"grants": [
"<string>"
]
},
"relationships": {
"organisations": {
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
]
},
"teams": {
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
]
}
}
},
"jsonapi": {
"version": "<string>"
},
"included": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>",
"attributes": {
"name": "<string>",
"slug": "<string>",
"sandbox": true,
"settings": {
"nomenclature": {
"governance": {
"schemes": [
{
"singular": "<string>",
"plural": "<string>",
"language": "<string>"
}
],
"work_orders": [
{
"singular": "<string>",
"plural": "<string>",
"language": "<string>"
}
],
"operations": [
{
"singular": "<string>",
"plural": "<string>",
"language": "<string>"
}
]
}
}
},
"description": "<string>"
},
"meta": {
"v3": true,
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"features": [
{
"name": "<string>",
"enabled": true,
"limit": 123
}
]
},
"relationships": {
"users": {
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
]
},
"service_accounts": {
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
]
},
"groups": {
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
]
},
"teams": {
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "<string>"
}
]
}
}
}
]
}Session token for authentication.
The unique identifier for the user.
The user profile to update.
Show child attributes