Users

Metadata

PATCH
Bulk patch metadata for users

Request

This endpoint expects a list of objects.
userEmail
stringRequired
metadata
anyRequired

Key-value object of metadata for user. Keys will be merged with any existing values but can also be set to null to effectively remove

PATCH
$curl -X PATCH https://api.credal.ai/api/v0/users/metadata \
> -H "Authorization: Bearer <apiKey>" \
> -H "Content-Type: application/json" \
> -d '[
> {
> "userEmail": "ravin@credal.ai",
> "metadata": {
> "State": "NY",
> "Job Role": "CEO"
> }
> },
> {
> "userEmail": "jack@credal.ai",
> "metadata": {
> "State": "NY",
> "Department": "Engineering"
> }
> }
>]'