asapi_user_put: The Users PUT Function

Description Usage Arguments

View source: R/api_connector.R

Description

This function allows you to PUT User new information with the API and retrieve your API KEY

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
asapi_user_put(
  client,
  email,
  new_username = "NULL",
  new_email = "NULL",
  new_rol = "NULL",
  email_admin,
  api_key,
  url = "https://api.agrospace.cl"
)

Arguments

client

Client name

email

What is the email of the user to edit.

new_username

New user name. If the value is 'NULL' it does not change.

new_email

New email user. If the value is 'NULL' it does not change.

new_rol

New user rol: admin or user. If the value is 'NULL' it does not change.

email_admin

Email of the user who is editing. It must be 'admin'.

api_key

Api Key obtain from /auth

url

URL for dev purpose


agrospace/ASAPI documentation built on Nov. 26, 2021, 3:36 a.m.