put request as parameter for api