Skip to main content
POST
Grant a per-account permission (admin, direct)

Ủy quyền

Authorization
string
header
bắt buộc

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Nội dung

application/json

Permission grant payload.

GrantPermissionPayload schema.

user_id
string
bắt buộc

User identifier.

account_code
string
bắt buộc

Account code used by administration and mapping records.

level
enum<string>
bắt buộc

Permission level.

Tùy chọn có sẵn:
VIEW,
TRADE,
ADMIN

Phản hồi

200 - application/json

OK

Grant schema.

user_id
string

User identifier.

account_code
string

Account code used by administration and mapping records.

level
enum<string>

Permission level.

Tùy chọn có sẵn:
VIEW,
TRADE,
ADMIN
granted_by
string

User that granted the permission.

created_at
string<date-time>

Timestamp when the record was created.

updated_at
string<date-time>

Timestamp when the record was last updated.