Skip to main content

API - Post user

This API route will let you update a user.

POST

Authentication

Authentication is required by using your Api Key in the Authorization header.

Authorization: ApiKey [SERVER_API_KEY]
note

You should only use this API call from your server.
For security reasons, each API endpoint has a rate limit of 5 requests per second.

Url parameters

StringApp id
StringUser id

Body parameters

environment(Optional)Values
StringApp environment (production by default)
ObjectUpdate user tags (You must create the tag first on the dashboard and the value cannot exceed 64 characters)
StringUpdate user country code
StringUpdate user id
upsert(Optional)
BooleanOption to create user if it doesn't exist (disabled by default)

Example

Url

https://api.iaphub.com/v1/app/acc317e366ce2d1f18fcb743/user/5cc317e366ce2d1f18fcb743

Body

{
environment: 'staging',
tags: {gender: 'male'}
}

Response

{}