Ingress User Meta

This API is meant to Update User Meta for either one or more users and supports 3 different formats. Any missing data, invalid users, invalid keys or incorrect format will throw an error. Use this API to make quick updates to multiple users and meta fields in a single API call.

In TLD, User Meta Fields are fields that are bound to the user and the current account they are on. Whereas User fields would be the more basic information about a user such as first name and last name.

A user can have the same meta fields with different values on different accounts should they have cross-account access.

Endpoint: /api/ingress/user_meta

Method: PUT

API Version Support: v1

Security Notice: Please make sure to use API | Endpoint Protection when giving this access to third party systems as API Keys are unprotected unless specified.

The proper endpoint protection to set for an API using this Endpoint is /api/ingress/user_meta

Data Formats Supported

form-data, x-www-form-urlencoded Form Parameters or JSON Body with Content-Type: application/json set.

Response Codes

200: Success and Warnings

400: Error

Update Format 1: Users as Objects with Key->Value Object to Update

Parameter

Required

Format

Description

Notes

Parameter

Required

Format

Description

Notes

users

✓

object - Object of User ID Keyed Objects with Meta Field → Value Pairs

The Object that contains the User Keys and Values to Update. Fields Can be mixed but all must be valid.

Must have at least 1 valid User ID. Invalid User ID’s will throw an error.

users.{user_id}

✓

numeric string

Specified the User being Updated.

Any Invalid Fields in any object will throw an error.

users.{user_id}.{field_name}

✓

string|int

Value for the Meta Field you want to Update.

 

JSON Object

{ "users": { "{user_id}": { "{field_name}": "{field_value}", "{field_name}": "{field_value}" }, "{user_id}": { "{field_name}": "{field_value}", "{field_name}": "{field_value}" } } }

Update Format 2: Array of Full User, Field and Value Objects. An Array of Format 3 Objects

Parameter

Required

Format

Description

Notes

Parameter

Required

Format

Description

Notes

fields

✓

array - Array of User ID, Field and Value Objects

This allows you to use Format 3 to Bulk Update Multiple Users for Multiple Fields individually.

Must have at least 1 valid User, and all fields must be valid.

fields[0].user_id

✓

integer

Specified the User being Updated

Any Invalid Users in any object will throw an error.

fields[0].field

✓

string

Name of the Meta Field you want to Update.

Any Invalid Fields in any object will throw an error.

fields[0].value

✓

string|int

Value for the Meta Field you want to Update.

 

JSON Object

{ "fields": [ { "user_id": "{user_id}", "field": "{field_name}", "value": "{field_value}" }, { "user_id": "{user_id}", "field": "{field_name}", "value": "{field_value}" }, { "user_id": "{user_id}", "field": "{field_name}", "value": "{field_value}" }, { "user_id": "{user_id}", "field": "{field_name}", "value": "{field_value}" } ] }

Update Format 3: 1 User 1 Field Update

Parameter

Required

Format

Description

Notes

Parameter

Required

Format

Description

Notes

user_id

✓

integer

Specified the User being Updated

Any Invalid Users in any object will throw an error.

field

✓

string

Name of the Meta Field you want to Update.

Any Invalid Fields in any object will throw an error.

value

✓

string|int

Value for the Meta Field you want to Update.

 

JSON Object

{ "user_id": "{user_id}", "field": "{field_name}", "value": "{field_value}" }

Errors Possible

Error

Resolution

Error

Resolution

No API ID Provided

Check API ID in Header or Parameters. See API | Using API ID and API Key

No API Key Provided

Check API Key in Headers or Parameters. See API | Using API ID and API Key

 

 

 

 

 

 

 

 

 

 

 

 

 

Â