UsersMeta

This section provides to the Admin user retrieve, create and change meta data for users
Meta data meaning: an Admin can create different key:value pairs stored in internal DB. Every meta data key:value pair will be related to a specfifc user with user_id
key: has to be any string
value: has to be any of next types: ["string", "array", "JSON"].
The usersMeta routes available only for Admin user

get-users-meta

Retrieve all created meta data for users

SecurityAuthorization
Request
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
Responses
200

Success

get/usersMeta
Response samples
application-json
{
  • "api_message": "<string>",
  • "api_data": [
    ]
}

get-users-meta-keys-info

Retrieve information about all stored users meta key:value pairs and allowed keys and values structure

SecurityAuthorization
Request
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
Responses
200

Success

get/usersMeta/keys
Response samples
application-json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

create-user-meta-key

Create user meta key:value object related to the user by user_id

SecurityAuthorization
Request
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
Request Body schema: application-json
required
user_id
string
key
string
value
string
Responses
200

Success

post/usersMeta/keys
Request samples
application-json
{}
Response samples
application-json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

get-user-meta-by-id

get specific user meta object by id

SecurityAuthorization
Request
path Parameters
id
required
string

key id

Example: UHR5OHFVWmZSS1U9
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
Responses
200

Success

get/usersMeta/{id}
Response samples
application-json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

update-user-meta-by-id

update specific user meta object by id

SecurityAuthorization
Request
path Parameters
id
required
string

key id

Example: UHR5OHFVWmZSS1U9
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
Request Body schema: application-json
required
user_id
string
key
string
value
string
Responses
200

Success

put/usersMeta/{id}
Request samples
application-json
{}
Response samples
application-json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

delete-user-meta-by-user_id-and-key

Delete specific user meta object by id

SecurityAuthorization
Request
path Parameters
id
required
string

key id

Example: UHR5OHFVWmZSS1U9
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
Responses
204

No content (Success)

delete/usersMeta/{id}

get-user-meta-by-user_id-and-key

get specific user meta object by user_id and object key

SecurityAuthorization
Request
path Parameters
id
required
string

user_id

Example: WlBPdmtSY2hITGM9
id
required
string

key id

Example: UHR5OHFVWmZSS1U9
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
Responses
200

Success

get/users/Meta/{id}/{key}
Response samples
application-json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}