def METHOD_NAME(api_client, kw_id, keyword_data, credentials=None):
    if credentials:
        api_client.credentials(**credentials)
    response = api_client.put(kw_id, keyword_data, format="json")
    return response