v1
latestOpenAPI 3.0.02026-07-175652103.9 KBaddress book
Add peer
This function is an API endpoint that adds a peer to an address book.
Parameters
-
ab: The identifier of the address book.
-
request: A JSON object containing the new peer information.
Returns
If successful, this function returns an ActionResponse::Empty object.
post/api/ab/peer/add/{ab}
Path parameters
abstring required
Request body
Response
# 200 OK
This response is given when the request is successful.
The body is empty if there is no error,
The body contains a json object with the error {"error":"Error message"}