setMakerOnlyApiKeys
Set maker-only API key indexes. This replaces the current list; pass all indexes you want marked as maker-only. Pass [] to clear all maker-only restrictions.
post/api/v1/setMakerOnlyApiKeys
Header parameters
authorizationstringRequired
Auth token in the Authorization header.
Body
Send as form data, not JSON. The value replaces the full maker-only API key list; use [] to clear all restrictions.
account_indexinteger · int64Required
api_key_indexesstringRequired
JSON array string of API key indexes, e.g. "[4,5]". Use [] to clear all maker-only restrictions.
Responses
200
A successful response.
application/json
codeinteger · int32RequiredExample:
200messagestringOptional
400
Bad request
application/json
post/api/v1/setMakerOnlyApiKeys
POST /api/v1/setMakerOnlyApiKeys HTTP/1.1
Host: mainnet.zklighter.elliot.ai
authorization: text
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 44
"account_index=1&api_key_indexes='text'"{
"code": 200,
"message": "text"
}Last updated
Was this helpful?