Skip to main content
POST
Create a Basic Auth User.

Authorizations

Authorization
string
header
required

The Tyk Dashboard API Access Credentials

Path Parameters

username
string
required

Username of Basic Auth user to create or update.

Body

application/json
access_rights
object | null
alias
string
Example:

"portal-developer@example.org"

allowance
number<double>
Example:

1000

apply_policies
string[] | null
Example:
apply_policy_id
string
deprecated

deprecated use apply_policies going forward instead to send a list of policies ids

Example:

"641c15dd0fffb800010197bf"

basic_auth_data
object
certificate
string
mtls_static_certificate_bindings
string[] | null
data_expires
integer<int64>
Example:

0

date_created
string<date-time>
Example:

"2024-05-14T13:15:46.560506+03:00"

enable_detailed_recording
boolean
Example:

true

expires
integer<int64>
Example:

1716895221

hmac_enabled
boolean
Example:

false

hmac_string
string
id_extractor_deadline
integer<int64>
Example:

0

is_inactive
boolean
jwt_data
object
key_id
string
last_check
integer<int64>
Example:

0

last_updated
string
Example:

"1715681746"

max_query_depth
integer
Example:

5

meta_data
any
monitor
object
oauth_client_id
string
oauth_keys
object | null
org_id
string
Example:

"5e9d9544a1dcd60001d0ed20"

per
number<double>
Example:

60

post_expiry_action
enum<string>

Defines the action to take on a Session in Redis after it expires. Valid values are "retain" and "delete", leave empty for legacy session lifetime controls.

Available options:
retain,
delete
Example:

"delete"

post_expiry_grace_period
integer<int64>

Duration in seconds to retain a Session in Redis after it expires. Used with post_expiry_action "retain". Set to -1 to retain indefinitely. Set to 0 to use legacy session lifetime controls.

Example:

0

quota_max
integer<int64>
Example:

1710302205

quota_remaining
integer<int64>
Example:

20000

quota_renewal_rate
integer<int64>
Example:

-1

quota_renews
integer<int64>
Example:

1715681745

rate
number<double>
Example:

1000

session_lifetime
integer<int64>
Example:

0

smoothing
object | null
tags
string[] | null
Example:
throttle_interval
number<double>
Example:

10

throttle_retry_limit
integer
Example:

-1

Response

User created successfully.

api_model
object
data
object
key_hash
string
Example:

"41c5cb1e"

key_id
string
Example:

"5e9d9544a1dcd60001d0ed20e7f75f9e03534825b7aef9df749582e5"