User Preferences
Operations related to User Preferences for managing user-specific settings such as communication preferences and platform customization.
Get a list of all user communication preferences available for Mediarithmics users
get/user_communication_preferences/definitions
Responses
200
Success !
application/json
statusstring · enumRequiredPossible values:
max_resultsintegerRequired
totalintegerRequired
countintegerRequired
first_resultintegerRequired
400
Error response
application/json
401
Error response
application/json
403
Error response
application/json
404
Error response
application/json
500
Error response
application/json
503
Error response
application/json
get/user_communication_preferences/definitions
GET /v1/user_communication_preferences/definitions HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"max_results": 1,
"data": [
{
"id": "text",
"is_active": false,
"is_internal": false,
"description": "text",
"business_unit_id": 0,
"created_at": "text",
"updated_at": "text",
"purpose": "text",
"name": "text",
"is_default": false,
"communication_method": "text"
}
],
"total": 1,
"count": 1,
"first_result": 1
}Path parameters
user_idstringRequired
The id of the user
Responses
200
Success !
application/json
totalintegerRequired
countintegerRequired
first_resultintegerRequired
statusstring · enumRequiredPossible values:
max_resultsintegerRequired
400
Error response
application/json
401
Error response
application/json
403
Error response
application/json
404
Error response
application/json
500
Error response
application/json
503
Error response
application/json
get/users/{user_id}/communication_preferences
GET /v1/users/{user_id}/communication_preferences HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"total": 1,
"count": 1,
"first_result": 1,
"status": "ok",
"data": [
{
"organisation_id": "text",
"user_id": 0,
"timestamp": "text",
"business_unit_id": 0,
"subscription_name": "text",
"subscriber_id_string": "text",
"legal_basis": "text",
"status": "text",
"subscription_id": "text",
"set_status_success_reason": "text",
"source": "text",
"legal_basis_explanation": "text",
"channel": "text"
}
],
"max_results": 1
}Path parameters
user_idstringRequired
The id of the user
Body
Responses
200
Success response
application/json
statusstring · enumRequiredPossible values:
400
Error response
application/json
401
Error response
application/json
403
Error response
application/json
404
Error response
application/json
500
Error response
application/json
503
Error response
application/json
post/users/{user_id}/communication_preferences
POST /v1/users/{user_id}/communication_preferences HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 111
{
"user_preferences": [
{
"legal_basis": "text",
"status": "text",
"legal_basis_explanation": "text",
"channel": "text"
}
]
}{
"status": "ok"
}Last updated
Was this helpful?